summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCostin GamenČ› <costin@cern.ch>2017-11-23 11:13:50 +0100
committerCostin Eugen Gament <costin@cern.ch>2017-11-29 13:39:18 +0000
commitc58b727bec3561d8d283497d784a3437185924dd (patch)
treeb34e97c2985c15943d7b67574ba139065cee65df
parent6a2d14d3276bb4fe289ad2dd839ffe7b73f80794 (diff)
Generate lower case stack namestable/pike
If stack name contains upper case characters, Openstack Cloud Provider will complain. Change-Id: I482e7143fb772d409d2c25b68ce6a6020e130bc3 Close-Bug: #1718947 (cherry picked from commit 336404c861dfde68ab15a3f66fce714ee4f12291)
Notes
Notes (review): 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: Wed, 29 Nov 2017 17:01:42 +0000 Reviewed-on: https://review.openstack.org/523874 Project: openstack/magnum Branch: refs/heads/stable/pike
-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: