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: