Fix runcommand logging exception.

BUG 2215978
This commit is contained in:
Brett Chabot
2009-10-26 14:51:45 -07:00
parent a73e4f9af7
commit 99e5f91aab

View File

@@ -112,7 +112,7 @@ def RunOnce(cmd, timeout_time=None, return_output=True, stdin_input=None):
logger.Log(e)
so.append("ERROR")
error_occurred = True
if pipe.returncode != 0:
if pipe.returncode:
logger.SilentLog("Error: %s returned %d error code" %(cmd,
pipe.returncode))
error_occurred = True