summaryrefslogtreecommitdiffstats
path: root/fuel/deploy/deploy_env.py
diff options
context:
space:
mode:
authorJonas Bjurel <jonas.bjurel@ericsson.com>2015-06-20 16:36:48 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-06-20 16:36:48 +0000
commitdb16cb60a0a5d88df06e1b7ca72389dfe41909f0 (patch)
tree9da2cab3ea73d8a204b9e8af9543ff13cc5f84fa /fuel/deploy/deploy_env.py
parent04480f51e17f1834f48ca34f7df4da166d355d26 (diff)
parent49b17cd12b10327ca8848c37746768aa6c804827 (diff)
Merge "Catching exit status from remote deployment process"
Diffstat (limited to 'fuel/deploy/deploy_env.py')
-rw-r--r--fuel/deploy/deploy_env.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/fuel/deploy/deploy_env.py b/fuel/deploy/deploy_env.py
index 48aec18..084f37e 100644
--- a/fuel/deploy/deploy_env.py
+++ b/fuel/deploy/deploy_env.py
@@ -68,7 +68,9 @@ class CloudDeploy(object):
dea_file = '%s/%s' % (self.work_dir, os.path.basename(self.dea_file))
macs_file = '%s/%s' % (self.work_dir, os.path.basename(self.macs_file))
with self.ssh as s:
- s.run('python %s %s %s' % (deploy_app, dea_file, macs_file))
+ status = s.run('python %s %s %s'
+ % (deploy_app, dea_file, macs_file))
+ return status
def deploy(self):
@@ -84,4 +86,4 @@ class CloudDeploy(object):
self.upload_cloud_deployment_files()
- self.run_cloud_deploy(CLOUD_DEPLOY_FILE)
+ return self.run_cloud_deploy(CLOUD_DEPLOY_FILE)