Comment 2 for bug 1884297

Revision history for this message
Tom Haddon (mthaddon) wrote :

The reason this fails via ssh but not locally on the machines we were testing with here is that we use a different codepath if we can find the "charm" command vs. not finding it, and the one that we trigger when we can't find the "charm" command uses this:

with open(zip_path, 'wb') as charm_file, requests.get(url) as req:

In python3.4 (which the machine this is failing on is running) requests.get isn't a context manager.