From a9463e1d695e0018e93013ff6b2c0dfdb8162ef7 Mon Sep 17 00:00:00 2001 From: Falk <50197097+flkhndlr@users.noreply.github.com> Date: Mon, 22 Apr 2024 14:58:56 +0200 Subject: [PATCH] change error message for grafana silence not there --- plugins/modules/grafana_silence.py | 2 +- tests/integration/targets/grafana_silence/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/grafana_silence.py b/plugins/modules/grafana_silence.py index a6399071..151b3659 100644 --- a/plugins/modules/grafana_silence.py +++ b/plugins/modules/grafana_silence.py @@ -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) diff --git a/tests/integration/targets/grafana_silence/tasks/main.yml b/tests/integration/targets/grafana_silence/tasks/main.yml index 38ef9126..ad4cfa25 100644 --- a/tests/integration/targets/grafana_silence/tasks/main.yml +++ b/tests/integration/targets/grafana_silence/tasks/main.yml @@ -86,4 +86,4 @@ that: - "result.changed == false" - "result.failed == false" - - "result.msg == 'No silence with the same parameters found! Deletion not possible'" \ No newline at end of file + - "result.msg == 'Silence does not exist'" \ No newline at end of file