Fix tempest-account-generator command roles issue

The change https://review.openstack.org/#/c/216109 modified the
identity client to return the entire response object instead of
only part of it. This patch fixes a call to list_roles that was
missed in the tempest-account-generator tool.

Change-Id: I0986dac6f8a37879f98583f2e1c899670970b668
This commit is contained in:
John Warren 2015-09-28 13:51:51 -04:00
parent b17cc68730
commit e61a94fb0f

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', ()):