Skip to content

Commit

Permalink
change error message for grafana silence not there
Browse files Browse the repository at this point in the history
  • Loading branch information
flkhndlr authored and rndmh3ro committed Apr 22, 2024
1 parent c08d139 commit 4d0af1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/modules/grafana_silence.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def main():
module.exit_json(
failed=False,
changed=changed,
msg="No silence with the same parameters found! Deletion not possible",
msg="Silence does not exist",
)
module.exit_json(failed=failed, changed=changed, silence=silence)

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/grafana_silence/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
that:
- "result.changed == false"
- "result.failed == false"
- "result.msg == 'No silence with the same parameters found! Deletion not possible'"
- "result.msg == 'Silence does not exist'"

0 comments on commit 4d0af1a

Please sign in to comment.