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 bb25a66 commit 6e3198a
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 @@ -81,7 +81,7 @@ def grafana_send_request(
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 6e3198a

Please sign in to comment.