aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/common.py')
-rw-r--r--deploy/common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/deploy/common.py b/deploy/common.py
index 17fd2174a..ccd43d79a 100644
--- a/deploy/common.py
+++ b/deploy/common.py
@@ -39,10 +39,12 @@ LOG.addHandler(out_handler)
os.chmod(LOGFILE, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
def exec_cmd(cmd, check=True):
+ nul_f = open(os.devnull, 'w')
process = subprocess.Popen(cmd,
stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT,
+ stderr=nul_f,
shell=True)
+ nul_f.close()
response = process.communicate()[0].strip()
return_code = process.returncode
if check: