Correctly report "changed: false" when trying to install a package not in the catalog. This fixes #230

pull/18777/head
Dagobert Michelsen 10 years ago committed by Matt Clay
parent 0ea2cf77dd
commit 474df33ff3

@ -162,10 +162,15 @@ def main():
(rc, out, err) = package_uninstall(module, name) (rc, out, err) = package_uninstall(module, name)
out = out[:75] out = out[:75]
if rc is None: if rc == 0:
result['changed'] = True
else:
result['changed'] = False result['changed'] = False
if rc is not None and rc != 0:
result['failed'] = True
else: else:
result['changed'] = True result['failed'] = False
if out: if out:
result['stdout'] = out result['stdout'] = out

Loading…
Cancel
Save