Updated openstack/openstack

Project: openstack/os-cloud-config  91376b7b4a17cf0c0a0e241bf7b9abc9a8f92539

use 'id' instead of 'name' for locating default domain

A fresh Keystone install creates a domain with id == 'default' and name
== 'Default'. This was causing `_grant_admin_user_roles` to fail because
it was looking for:

    default_domain = keystone_v3.domains.list(name='default')[0]

This would cause init-keystone to fail with:

    IndexError: list index out of range

This modifies the function to use the `id` attribute instead.

Change-Id: Ia6372e561a0bc8308f5f14d8c820f696b95041a4
Closes-bug: #1427760
This commit is contained in:
Lars Kellogg-Stedman 2015-03-03 11:52:44 -05:00 committed by Gerrit Code Review
parent e16ad859f4
commit a47db1c5e8
1 changed files with 1 additions and 0 deletions

1
os-cloud-config Submodule

@ -0,0 +1 @@
Subproject commit 91376b7b4a17cf0c0a0e241bf7b9abc9a8f92539