summaryrefslogtreecommitdiff
path: root/heat/tests/fakes.py
diff options
context:
space:
mode:
authorSteve Baker <sbaker@redhat.com>2014-03-06 15:44:42 +1300
committerSteve Baker <sbaker@redhat.com>2014-03-12 14:17:36 +1300
commitd44273bfcd1612b843b0c084e4aa2927ba8abd1c (patch)
tree504b94ea00765a826085892d9527260f31176ea4 /heat/tests/fakes.py
parent22fd357a5e33ba46fad749d5ba76cd0b4f14cb16 (diff)
downloadheat-d44273bfcd1612b843b0c084e4aa2927ba8abd1c.tar.gz
Use stack ID to create domain project name
If the project for a given stack didn't get deleted for any reason then launching a stack with the same name will fail as project names are enforced to be unique. By using the stack ID instead this issue is avoided if the project delete didn't occur. The resulting project name is truncated to the limit of 64. Change-Id: Iba09cf94bdaa6a92d9520ed1743805862dc1b14d Closes-Bug: #1288514
Diffstat (limited to 'heat/tests/fakes.py')
-rw-r--r--heat/tests/fakes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heat/tests/fakes.py b/heat/tests/fakes.py
index 0914dc7d1..e2b83d6a2 100644
--- a/heat/tests/fakes.py
+++ b/heat/tests/fakes.py
@@ -143,7 +143,7 @@ class FakeKeystoneClient(object):
def delete_stack_domain_project(self, project_id):
pass
- def create_stack_domain_project(self, stack_name):
+ def create_stack_domain_project(self, stack_id):
return 'aprojectid'
def create_stack_domain_user(self, username, project_id, password=None):