Adjust setting to better make logic clearer

This commit is contained in:
Dagobert Michelsen 2015-02-18 10:33:21 +01:00
parent df5e1946aa
commit 57c723fcd9

View file

@ -162,15 +162,14 @@ def main():
(rc, out, err) = package_uninstall(module, name)
out = out[:75]
if rc == 0:
result['changed'] = True
else:
if rc is None:
# pkgutil was not executed because the package was already present/absent
result['changed'] = False
elif rc == 0
result['changed'] = True
else
result['changed'] = False
if rc is not None and rc != 0:
result['failed'] = True
else:
result['failed'] = False
if out:
result['stdout'] = out