issue #477: paper over Ansible 2.3 flag handling difference
This commit is contained in:
parent
b67e4e118e
commit
8385c38cff
|
@ -12,10 +12,11 @@
|
||||||
ansible_connection: mitogen_sudo
|
ansible_connection: mitogen_sudo
|
||||||
ansible_user: root
|
ansible_user: root
|
||||||
ansible_become_exe: stub-sudo.py
|
ansible_become_exe: stub-sudo.py
|
||||||
ansible_become_flags: --type=sometype --role=somerole
|
ansible_become_flags: -H --type=sometype --role=somerole
|
||||||
register: out
|
register: out
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that: out.env.THIS_IS_STUB_SUDO == '1'
|
||||||
- out.env.THIS_IS_STUB_SUDO == '1'
|
- assert_equal:
|
||||||
- (out.env.ORIGINAL_ARGV|from_json)[1:9] == ['-u', 'root', '-H', '-r', 'somerole', '-t', 'sometype', '--']
|
left: (out.env.ORIGINAL_ARGV|from_json)[1:9]
|
||||||
|
right: ['-u', 'root', '-H', '-r', 'somerole', '-t', 'sometype', '--']
|
||||||
|
|
Loading…
Reference in New Issue