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