mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
updated s3.query function to return headers array for successful requests
fixes issue with s3.head returning None for files that exist
This commit is contained in:
parent
3012e98577
commit
8999148da0
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ def query(key, keyid, method='GET', params=None, headers=None,
|
|||
if return_url is True:
|
||||
return ret, requesturl
|
||||
else:
|
||||
if method == 'GET' or method == 'HEAD':
|
||||
if result.status_code != requests.codes.ok:
|
||||
return
|
||||
ret = {'headers': []}
|
||||
for header in result.headers:
|
||||
|
|
Loading…
Add table
Reference in a new issue