diff options
Diffstat (limited to 'ec2init/execute.py')
-rw-r--r-- | ec2init/execute.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/ec2init/execute.py b/ec2init/execute.py deleted file mode 100644 index 033da8f7..00000000 --- a/ec2init/execute.py +++ /dev/null @@ -1,13 +0,0 @@ -def run(list,cfg): - import subprocess - retcode = subprocess.call(list) - - if retcode == 0: - return - - if retcode < 0: - str="Cmd terminated by signal %s\n" % -retcode - else: - str="Cmd returned %s\n" % retcode - str+=' '.join(list) - raise Exception(str) |