Do not return failure when the package is installed and nothing is done (#1852)

reviewable/pr18780/r1
Dagobert Michelsen 8 years ago committed by Brian Coca
parent e8b29dd750
commit 93472c3c54

@ -225,9 +225,10 @@ def main():
else:
result['changed'] = False
# rc will be none when the package already was installed and no action took place
# Only return failed=False when the returncode is known to be good as there may be more
# undocumented failure return codes
if rc not in (0, 2, 10, 20):
if rc not in (None, 0, 2, 10, 20):
result['failed'] = True
else:
result['failed'] = False

Loading…
Cancel
Save