Merge "Fix tempest-account-generator command roles issue"

This commit is contained in:
Jenkins 2015-10-07 00:33:42 +00:00 committed by Gerrit Code Review
commit aa5b37c785

View File

@ -160,7 +160,7 @@ def get_admin_clients(opts):
def create_resources(opts, resources):
(identity_admin, neutron_iso_networks,
network_admin, networks_admin) = get_admin_clients(opts)
roles = identity_admin.list_roles()
roles = identity_admin.list_roles()['roles']
for u in resources['users']:
u['role_ids'] = []
for r in u.get('roles', ()):