Skip to content

Commit aac0d58

Browse files
author
Steve Martinelli
committed
Skip trying to set project_domain_id if not using password
This is already fine for user_domain_id, and needs to be replicated for project_domain_id. Also added more logging. Change-Id: I3fa8f29edb3fc430d453bd0fc835312c0c8401f4
1 parent f3725b4 commit aac0d58

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

openstackclient/common/clientmanager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def setup_auth(self):
138138
# present, then do not change the behaviour. Otherwise, set the
139139
# PROJECT_DOMAIN_ID to 'OS_DEFAULT_DOMAIN' for better usability.
140140
if (self._api_version.get('identity') == '3' and
141+
self.auth_plugin_name.endswith('password') and
141142
not self._auth_params.get('project_domain_id', None) and
142143
not self.auth_plugin_name.startswith('v2') and
143144
not self._auth_params.get('project_domain_name', None)):
@@ -160,6 +161,7 @@ def setup_auth(self):
160161
self._project_name = self._auth_params['tenant_name']
161162

162163
LOG.info('Using auth plugin: %s' % self.auth_plugin_name)
164+
LOG.debug('Using parameters %s' % self._auth_params)
163165
self.auth = auth_plugin.load_from_options(**self._auth_params)
164166
# needed by SAML authentication
165167
request_session = requests.session()

0 commit comments

Comments
 (0)