issue #477: Ansible 2.3 module output format difference.

Don't test for keys it doesn't set.
issue510
David Wilson 6 years ago
parent b6062afe24
commit dc01f9e47e

@ -8,8 +8,12 @@
register: out register: out
- assert: - assert:
that: | that:
(not out.changed) and - out.results[0].input[0].foo
(not out.results[0].changed) and - out.results[0].message == 'I am a perl script! Here is my input.'
out.results[0].input[0].foo and
out.results[0].message == 'I am a perl script! Here is my input.' - when: ansible_version.full > '2.4'
assert:
that:
- (not out.changed)
- (not out.results[0].changed)

@ -8,8 +8,12 @@
register: out register: out
- assert: - assert:
that: | that:
(not out.changed) and - out.results[0].input[0].foo
(not out.results[0].changed) and - out.results[0].message == 'I am a want JSON perl script! Here is my input.'
out.results[0].input[0].foo and
out.results[0].message == 'I am a want JSON perl script! Here is my input.' - when: ansible_version.full > '2.4'
assert:
that:
- (not out.changed)
- (not out.results[0].changed)

Loading…
Cancel
Save