aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorJosep Puigdemont <josep.puigdemont@enea.com>2016-04-17 11:22:27 +0200
committerJosep Puigdemont <josep.puigdemont@gmail.com>2016-04-25 21:18:17 +0000
commitc63d1ecfb4fd543e0bb449c5b18635dd5a50d3db (patch)
treeaa2d04c2d00b091a1ab93561ffd34374c6c81943 /deploy
parent2b419db5c9325c6a87f1ea160c42235a1e8ec083 (diff)
configure_environment.py: quote environment name
The Fuel environment name may contain spaces, putting the name in quote marks prevents the second and subsequent words from being interpreted as other parameters by the fuel command. The name could contain double quotes too, so this doesn't solve all problems, but arguably the most common case. Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/cloud/configure_environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/cloud/configure_environment.py b/deploy/cloud/configure_environment.py
index 1914d7e3e..0fbf225c6 100644
--- a/deploy/cloud/configure_environment.py
+++ b/deploy/cloud/configure_environment.py
@@ -49,7 +49,7 @@ class ConfigureEnvironment(object):
env_net_segment_type = self.dea.get_env_net_segment_type()
log('Creating environment %s release %s net-segment-type %s'
% (env_name, self.release_id, env_net_segment_type))
- exec_cmd('fuel env create --name %s --release %s --net-segment-type %s'
+ exec_cmd('fuel env create --name "%s" --release %s --net-segment-type %s'
% (env_name, self.release_id, env_net_segment_type))
if not self.env_exists(env_name):