summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCostin GamenČ› <costin@cern.ch>2017-11-23 11:13:50 +0100
committerCostin GamenČ› <costin@cern.ch>2017-11-23 11:13:50 +0100
commit336404c861dfde68ab15a3f66fce714ee4f12291 (patch)
tree56a18a4e4a9768f124c9e8876374d12a6c5c103b
parent8e8fbe92145b7ccdfe32e9310cc40dcc1d148131 (diff)
Generate lower case stack name
If stack name contains upper case characters, Openstack Cloud Provider will complain. Change-Id: I482e7143fb772d409d2c25b68ce6a6020e130bc3 Close-Bug: #1718947
Notes
Notes (review): Code-Review+1: zhubingbing <zhu.bingbing@99cloud.net> Code-Review+2: Spyros Trigazis (strigazi) <strigazi@gmail.com> Code-Review+2: yatin <ykarel@redhat.com> Workflow+1: yatin <ykarel@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 24 Nov 2017 12:29:20 +0000 Reviewed-on: https://review.openstack.org/522513 Project: openstack/magnum Branch: refs/heads/master
-rwxr-xr-xmagnum/drivers/heat/driver.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/magnum/drivers/heat/driver.py b/magnum/drivers/heat/driver.py
index 132a47b..7051b94 100755
--- a/magnum/drivers/heat/driver.py
+++ b/magnum/drivers/heat/driver.py
@@ -124,6 +124,7 @@ class HeatDriver(driver.Driver):
124 124
125 # Make sure no duplicate stack name 125 # Make sure no duplicate stack name
126 stack_name = '%s-%s' % (stack_name, short_id.generate_id()) 126 stack_name = '%s-%s' % (stack_name, short_id.generate_id())
127 stack_name = stack_name.lower()
127 if cluster_create_timeout: 128 if cluster_create_timeout:
128 heat_timeout = cluster_create_timeout 129 heat_timeout = cluster_create_timeout
129 else: 130 else: