diff options
author | Will Holland <william.holland@codethink.co.uk> | 2015-09-08 16:39:11 +0100 |
---|---|---|
committer | Will Holland <william.holland@codethink.co.uk> | 2015-09-08 16:39:11 +0100 |
commit | cf86f441768de0a5e658f59fd212e662caceabb2 (patch) | |
tree | 3ce437057746120eb7e06273d61c65710d3d9318 | |
parent | 80889fe9a13ee5cab8bc80be93a6f3545e4a5e50 (diff) | |
download | orchestration-cf86f441768de0a5e658f59fd212e662caceabb2.tar.gz |
Replace Popen with call for tidiness
-rw-r--r-- | source/bottlerock.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/bottlerock.py b/source/bottlerock.py index 3fbaf42..06580f6 100644 --- a/source/bottlerock.py +++ b/source/bottlerock.py @@ -16,8 +16,7 @@ def call_trigger(trigger_name,*args): import subprocess trigger_cmd = ['sh','../source/%s.sh' % trigger_name] for arg in args: trigger_cmd.append(arg) - trigger_callback = subprocess.Popen(trigger_cmd) - return trigger_callback.wait() + return subprocess.call(trigger_cmd) @post('/repo_update') def repo_update(): |