diff options
author | Stefan K. Berg <stefan.k.berg@ericsson.com> | 2015-12-09 09:10:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-12-09 09:10:03 +0000 |
commit | 90722b2a0de85d9b60130883b1b4f7b0e21dcffd (patch) | |
tree | 7370d47d8175d58a95b606b8d0cfa81bc1485997 /deploy/common.py | |
parent | 729284b2d64c547fd1622c6b4d66831d3c39cbf7 (diff) | |
parent | e9dade97d97f0d80fef3dd7d73b83cbe84eebf31 (diff) |
Merge "Reaping improvements for Fuel 7"
Diffstat (limited to 'deploy/common.py')
-rw-r--r-- | deploy/common.py | 4 |
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: |