Skip to content

Commit

Permalink
Use domain ID instead of domain name when bootstrapping
Browse files Browse the repository at this point in the history
Fixes: 16
  • Loading branch information
lbragstad committed Oct 6, 2016
1 parent eecbad6 commit 052f176
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
username='admin',
password='password',
project_name='admin',
project_domain_name='Default',
project_domain_id='default',
user_domain_id='default',
auth_url='http://localhost:35357/v3/')

Expand Down Expand Up @@ -41,11 +41,11 @@ def create_projects():
# create a pile of projects, each with ten users and role assignments
for _ in xrange(10):
role = random.choice(keystone.roles.list())
project = keystone.projects.create(domain='Default',
project = keystone.projects.create(domain='default',
name=uuid.uuid4().hex)

for _ in xrange(10):
user = keystone.users.create(domain='Default',
user = keystone.users.create(domain='default',
default_project=project.id,
name=uuid.uuid4().hex,
password='password')
Expand Down

0 comments on commit 052f176

Please sign in to comment.