mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #21551 from robgott/fix-s3.head-returning-none
updated s3.query function to return headers for successful requests
This commit is contained in:
commit
a531ab0066
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