Skip to content

Commit 4771feb

Browse files
author
Igor_Bolotin
committed
Adding default user_domain_id parameter only when using
password auth Change-Id: I31943739cc1b535cbd402c5e9245b2f7a19cfa32 Closes-Bug: #1418810
1 parent 0cc3955 commit 4771feb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎openstackclient/common/clientmanager.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def __init__(
114114
# then do not change the behaviour. Otherwise, set the USER_DOMAIN_ID
115115
# to 'OS_DEFAULT_DOMAIN' for better usability.
116116
if (self._api_version.get('identity') == '3' and
117+
self.auth_plugin_name.endswith('password') and
117118
not self._auth_params.get('user_domain_id') and
118119
not self._auth_params.get('user_domain_name')):
119120
self._auth_params['user_domain_id'] = default_domain

0 commit comments

Comments
 (0)