Merge pull request #231 from dago/opencsw

Correctly report "changed: false" when trying to install a package not i...
This commit is contained in:
Toshio Kuratomi 2015-02-18 13:08:34 -08:00
commit a988f712e0

View file

@ -163,9 +163,13 @@ def main():
out = out[:75] out = out[:75]
if rc is None: if rc is None:
# pkgutil was not executed because the package was already present/absent
result['changed'] = False result['changed'] = False
else: elif rc == 0
result['changed'] = True result['changed'] = True
else
result['changed'] = False
result['failed'] = True
if out: if out:
result['stdout'] = out result['stdout'] = out