Skip to content

Commit

Permalink
issue #587: update MODULE FAILURE message format for post >2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dw committed May 27, 2019
1 parent 54b5fdf commit a3be746
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/ansible/integration/runner/crashy_new_style_module.yml
Expand Up @@ -12,7 +12,14 @@
that:
- not out.changed
- out.rc == 1
- out.msg == "MODULE FAILURE"
# ansible/62d8c8fde6a76d9c567ded381e9b34dad69afcd6
- |
(ansible_version.full < '2.7' and out.msg == "MODULE FAILURE") or
(ansible_version.full >= '2.7' and
out.msg == (
"MODULE FAILURE\n" +
"See stdout/stderr for the exact error"
))
- out.module_stdout == ""
- "'Traceback (most recent call last)' in out.module_stderr"
- "\"NameError: name 'kaboom' is not defined\" in out.module_stderr"

0 comments on commit a3be746

Please sign in to comment.