Fix usage of salt.utils.http.query in slack_notify.call_hook

Fixes #38518
This commit is contained in:
Kristjan Koppel 2017-01-03 10:40:46 +02:00
parent 5e80104a70
commit ff1e7f0c71

View File

@ -311,7 +311,7 @@ def call_hook(message,
'payload': json.dumps(payload, ensure_ascii=False)
}
)
result = salt.utils.http.query(url, 'POST', data=data)
result = salt.utils.http.query(url, method='POST', data=data, status=True)
if result['status'] <= 201:
return True