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]
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue