fix regression from #33681 which causes pulling a list of s3 objects via s3.query to fail (#34208)

This commit is contained in:
lomeroe 2016-06-22 16:02:33 -05:00 committed by Nicole Thomas
parent 02eb331494
commit 56c7267631

View file

@ -132,7 +132,7 @@ def query(key, keyid, method='GET', params=None, headers=None,
verify=verify_ssl,
stream=True)
response = result.content
elif method == 'GET' and not return_bin:
elif method == 'GET' and local_file and not return_bin:
result = requests.request(method,
requesturl,
headers=headers,