mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 03:53:59 -07:00
win_become: move error handling to Ansible outside of shell (#31227)
* win_become: move error handling to Ansible outside of shell * trimmed the output so double newlines don't get set * added test for non-zero exit code * missed issue URL on test * changed exit to SetShouldExit
This commit is contained in:
parent
34878926ca
commit
e61c2799ff
2 changed files with 7 additions and 10 deletions
|
@ -70,6 +70,10 @@
|
|||
assert:
|
||||
that:
|
||||
- whoami_out.stdout_lines[0].endswith(become_test_username)
|
||||
|
||||
- name: test with module that will return non-zero exit code (https://github.com/ansible/ansible/issues/30468)
|
||||
vars: *become_vars
|
||||
setup:
|
||||
|
||||
# FUTURE: test raw + script become behavior once they're running under the exec wrapper again
|
||||
# FUTURE: add standalone playbook tests to include password prompting and play become keywords
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue