Skip to content

Commit 863b50c

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Adding default user_domain_id parameter only when using password auth"
2 parents 5cf3929 + 4771feb commit 863b50c

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)