Explorar o código

Revert "AMBARI-11382. test_execute_retryable_command_succeed fails intermittently"

This reverts commit d12a79c4021ef5fbc574e46fb0e4fe99abf05fc0.
Sumit Mohanty %!s(int64=10) %!d(string=hai) anos
pai
achega
af7cc7480a
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      ambari-agent/src/main/python/ambari_agent/ActionQueue.py

+ 1 - 4
ambari-agent/src/main/python/ambari_agent/ActionQueue.py

@@ -279,10 +279,7 @@ class ActionQueue(threading.Thread):
       if isCommandBackground:
         return
       else:
-        if commandresult['exitcode'] == 0:
-          status = self.COMPLETED_STATUS
-        else:
-          status = self.FAILED_STATUS
+        status = self.COMPLETED_STATUS if commandresult['exitcode'] == 0 else self.FAILED_STATUS
 
       if status != self.COMPLETED_STATUS and retryAble == True and maxAttempts > numAttempts:
         delay = self.get_retry_delay(delay)