Merge pull request #231 from dago/opencsw

Correctly report "changed: false" when trying to install a package not i...
reviewable/pr18780/r1
Toshio Kuratomi 10 years ago
commit a988f712e0

@ -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

Loading…
Cancel
Save