فهرست منبع

Revert "AMBARI-11382. test_execute_retryable_command_succeed fails intermittently"

This reverts commit d12a79c4021ef5fbc574e46fb0e4fe99abf05fc0.
Sumit Mohanty 10 سال پیش
والد
کامیت
af7cc7480a
1فایلهای تغییر یافته به همراه1 افزوده شده و 4 حذف شده
  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)