Merge pull request #231 from dago/opencsw
Correctly report "changed: false" when trying to install a package not i...
This commit is contained in:
commit
a988f712e0
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue