Cleaning up svr4pkg commit fix for #7645

pull/4420/head
James Cammarata 2014-06-09 10:48:06 -05:00
parent 19d6f4d177
commit 61325f5817
1 changed files with 8 additions and 8 deletions

View File

@ -210,14 +210,14 @@ def main():
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:
if rc in (0, 2, 3, 10, 20):
result['changed'] = True
# 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:
if rc in (1, 4 , 5):
result['failed'] = True
else:
result['failed'] = False