From f17cd83826c5b375df98efab879d76320daaba4e Mon Sep 17 00:00:00 2001 From: Martin Krizek Date: Fri, 26 Oct 2018 00:20:26 +0200 Subject: [PATCH] 2.7: adds 'success_msg' to valid args for assert module (#47030) (#47584) * adds 'success_msg' to valid args for assert module (#47030) (cherry picked from commit 0661f2f21397ef88347d02c2e45a0195916b6bbe) * Add changelog --- .../fragments/47030-assert-add-success_msg-to-valid-args.yaml | 2 ++ lib/ansible/plugins/action/assert.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/47030-assert-add-success_msg-to-valid-args.yaml diff --git a/changelogs/fragments/47030-assert-add-success_msg-to-valid-args.yaml b/changelogs/fragments/47030-assert-add-success_msg-to-valid-args.yaml new file mode 100644 index 00000000000..6027be333d6 --- /dev/null +++ b/changelogs/fragments/47030-assert-add-success_msg-to-valid-args.yaml @@ -0,0 +1,2 @@ +bugfixes: + - assert - add 'success_msg' to valid args (https://github.com/ansible/ansible/pull/47030) diff --git a/lib/ansible/plugins/action/assert.py b/lib/ansible/plugins/action/assert.py index 4028201130d..a3b6af811a3 100644 --- a/lib/ansible/plugins/action/assert.py +++ b/lib/ansible/plugins/action/assert.py @@ -27,7 +27,7 @@ class ActionModule(ActionBase): ''' Fail with custom message ''' TRANSFERS_FILES = False - _VALID_ARGS = frozenset(('fail_msg', 'msg', 'that')) + _VALID_ARGS = frozenset(('fail_msg', 'msg', 'success_msg', 'that')) def run(self, tmp=None, task_vars=None): if task_vars is None: