summaryrefslogtreecommitdiffstats
path: root/deploy/deploy_env.py
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/deploy_env.py')
-rw-r--r--deploy/deploy_env.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/deploy/deploy_env.py b/deploy/deploy_env.py
index 3d1cdf430..aa861e102 100644
--- a/deploy/deploy_env.py
+++ b/deploy/deploy_env.py
@@ -35,7 +35,7 @@ class CloudDeploy(object):
def __init__(self, dea, dha, fuel_ip, fuel_username, fuel_password,
dea_file, fuel_plugins_conf_dir, work_dir, no_health_check,
- deploy_timeout):
+ deploy_timeout, no_deploy_environment):
self.dea = dea
self.dha = dha
self.fuel_ip = fuel_ip
@@ -50,6 +50,7 @@ class CloudDeploy(object):
self.work_dir = work_dir
self.no_health_check = no_health_check
self.deploy_timeout = deploy_timeout
+ self.no_deploy_environment = no_deploy_environment
self.file_dir = os.path.dirname(os.path.realpath(__file__))
self.ssh = SSHClient(self.fuel_ip, self.fuel_username,
self.fuel_password)
@@ -105,10 +106,12 @@ class CloudDeploy(object):
deploy_app = '%s/%s' % (self.work_dir, deploy_app)
dea_file = '%s/%s' % (self.work_dir, os.path.basename(self.dea_file))
with self.ssh as s:
- status = s.run('python %s %s %s %s' % (
+ status = s.run('python %s %s %s %s %s' % (
deploy_app,
('-nh' if self.no_health_check else ''),
- ('-dt %s' % self.deploy_timeout if self.deploy_timeout else ''),
+ ('-dt %s' %
+ self.deploy_timeout if self.deploy_timeout else ''),
+ ('-nde' if self.no_deploy_environment else ''),
dea_file))
return status