Skip to content

Commit

Permalink
grafana silence returns 202 as OK - need to handle that
Browse files Browse the repository at this point in the history
  • Loading branch information
rndmh3ro committed Apr 26, 2024
1 parent d183431 commit 4ae9640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def grafana_send_request(self, module, url, grafana_url, data=None, headers=None
self._module.fail_json(failed=True, msg="Permission Denied")
elif status_code < 0:
self._module.fail_json(failed=True, msg=info["msg"])
elif status_code == 200:
elif status_code in [200, 202]:
return self._module.from_json(resp.read())
self._module.fail_json(
failed=True,
Expand Down

0 comments on commit 4ae9640

Please sign in to comment.