Merge "Add info logs to plugin scoping"

This commit is contained in:
Jenkins
2017-02-02 16:32:19 +00:00
committed by Gerrit Code Review

View File

@@ -181,6 +181,8 @@ class BasePlugin(object):
scoped_auth_ref = scoped_auth.get_access(session)
except (keystone_exceptions.ClientException,
keystone_exceptions.AuthorizationFailure):
LOG.info('Attempted scope to project %s failed, will attempt'
'to scope to another project.' % project.name)
pass
else:
break
@@ -227,6 +229,8 @@ class BasePlugin(object):
domain_auth_ref = domain_auth.get_access(session)
except (keystone_exceptions.ClientException,
keystone_exceptions.AuthorizationFailure):
LOG.info('Attempted scope to domain %s failed, will attempt'
'to scope to another domain.' % domain_name)
pass
else:
if len(domains) > 1: