From 8385c38cff826e75bd65602ccbbc5ed2dd68d660 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 27 Jan 2019 01:33:44 +0000 Subject: [PATCH] issue #477: paper over Ansible 2.3 flag handling difference --- .../integration/stub_connections/mitogen_sudo.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/ansible/integration/stub_connections/mitogen_sudo.yml b/tests/ansible/integration/stub_connections/mitogen_sudo.yml index cb530a56..b7ca3d26 100644 --- a/tests/ansible/integration/stub_connections/mitogen_sudo.yml +++ b/tests/ansible/integration/stub_connections/mitogen_sudo.yml @@ -12,10 +12,11 @@ ansible_connection: mitogen_sudo ansible_user: root ansible_become_exe: stub-sudo.py - ansible_become_flags: --type=sometype --role=somerole + ansible_become_flags: -H --type=sometype --role=somerole register: out - assert: - that: - - out.env.THIS_IS_STUB_SUDO == '1' - - (out.env.ORIGINAL_ARGV|from_json)[1:9] == ['-u', 'root', '-H', '-r', 'somerole', '-t', 'sometype', '--'] + that: out.env.THIS_IS_STUB_SUDO == '1' + - assert_equal: + left: (out.env.ORIGINAL_ARGV|from_json)[1:9] + right: ['-u', 'root', '-H', '-r', 'somerole', '-t', 'sometype', '--']