mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 17:53:10 +00:00
Explicitly pass HTTP method to fetch_url
This commit is contained in:
committed by
Toshio Kuratomi
parent
6db074e7af
commit
ab3475e3f9
@@ -120,7 +120,7 @@ def main():
|
||||
|
||||
try:
|
||||
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:
|
||||
module.fail_json(msg='Unable to notify Rollbar: %s' % to_native(e), exception=traceback.format_exc())
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user