Fixed issue with debug command output being used even though debug wasn't specified.

pull/5869/head
Ross McDonald 2016-03-01 09:45:15 -06:00
parent e2dcdcf79b
commit 01140fa1c1
1 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,8 @@ def run(command, allow_failure=False, shell=False):
out = subprocess.check_output(command, stderr=subprocess.STDOUT, shell=shell)
else:
out = subprocess.check_output(command.split(), stderr=subprocess.STDOUT)
print "[DEBUG] command output: \n{}\n".format(out)
if debug:
print "[DEBUG] command output: \n{}\n".format(out)
except subprocess.CalledProcessError as e:
print ""
print ""