diff options
author | James Cammarata <jimi@sngx.net> | 2014-06-09 10:48:06 -0500 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2014-06-09 14:14:13 -0500 |
commit | 70595280599d2db26ca08c16574b2818b8bc0222 (patch) | |
tree | ad381dc123b5d32a1e724510fcd8f09ea4175b6c | |
parent | fadf02d0c6bc981d9e4c06ce5cf3998a248f17fb (diff) | |
download | ansible-70595280599d2db26ca08c16574b2818b8bc0222.tar.gz |
Cleaning up svr4pkg commit fix for #7645
-rw-r--r-- | library/packaging/svr4pkg | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/packaging/svr4pkg b/library/packaging/svr4pkg index 6a79497e6b..e95d4d8643 100644 --- a/library/packaging/svr4pkg +++ b/library/packaging/svr4pkg @@ -209,18 +209,18 @@ def main(): (rc, out, err) = package_uninstall(module, name, src, category) out = out[:75] - #Success,Warning,Interruption,Reboot all,Reboot this return codes - if rc is 0 or rc is 2 or rc is 3 or rc is 10 or rc is 20: + # Success, Warning, Interruption, Reboot all, Reboot this return codes + if rc in (0, 2, 3, 10, 20): result['changed'] = True - #no install nor uninstall, or failed + # no install nor uninstall, or failed else: result['changed'] = False - - #Fatal error,Administration,Administration Interaction return codes - if rc is 1 or rc is 4 or rc is 5: - result['failed'] = True + + # Fatal error, Administration, Administration Interaction return codes + if rc in (1, 4 , 5): + result['failed'] = True else: - result['failed'] = False + result['failed'] = False if out: result['stdout'] = out |