mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Explicitly pass HTTP method to fetch_url
This commit is contained in:
parent
6db074e7af
commit
ab3475e3f9
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ def main():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
data = urlencode(params)
|
data = urlencode(params)
|
||||||
response, info = fetch_url(module, url, data=data)
|
response, info = fetch_url(module, url, data=data, method='POST')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
module.fail_json(msg='Unable to notify Rollbar: %s' % to_native(e), exception=traceback.format_exc())
|
module.fail_json(msg='Unable to notify Rollbar: %s' % to_native(e), exception=traceback.format_exc())
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue