From c63d1ecfb4fd543e0bb449c5b18635dd5a50d3db Mon Sep 17 00:00:00 2001 From: Josep Puigdemont Date: Sun, 17 Apr 2016 11:22:27 +0200 Subject: 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 --- deploy/cloud/configure_environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deploy/cloud') 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): -- cgit 1.2.3-korg