Improve dynamic cred log to include scope
We log all the roles assigned to newly created dynamic cred user but knwoing the scope of the user will help in debugging. Change-Id: I480aafcdb15d6ec1d909a1062ef07d8463d40060
This commit is contained in:
parent
1e4cb1da36
commit
c67b026912
|
@ -254,8 +254,8 @@ class DynamicCredentialProvider(cred_provider.CredentialProvider):
|
|||
user, role, domain)
|
||||
elif scope == 'system':
|
||||
self.creds_client.assign_user_role_on_system(user, role)
|
||||
LOG.info("Roles assigned to the user %s are: %s",
|
||||
user['id'], roles_to_assign)
|
||||
LOG.info("Dynamic test user %s is created with scope %s and roles: %s",
|
||||
user['id'], scope, roles_to_assign)
|
||||
|
||||
creds = self.creds_client.get_credentials(**cred_params)
|
||||
return cred_provider.TestResources(creds)
|
||||
|
|
Loading…
Reference in New Issue