1
0
Fork 0
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:
Eric Coutu 2018-07-17 00:09:58 -04:00 committed by Toshio Kuratomi
parent 6db074e7af
commit ab3475e3f9

View file

@ -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: