mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Fix usage of salt.utils.http.query in slack_notify.call_hook
Fixes #38518
This commit is contained in:
parent
5e80104a70
commit
ff1e7f0c71
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user