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]
if rc is None:
# pkgutil was not executed because the package was already present/absent
result['changed'] = False
else:
elif rc == 0
result['changed'] = True
else
result['changed'] = False
result['failed'] = True
if out:
result['stdout'] = out