diff options
| author | Igor_Bolotin <igor_bolotin@symantec.com> | 2015-02-05 20:14:51 -0800 |
|---|---|---|
| committer | Igor_Bolotin <igor_bolotin@symantec.com> | 2015-02-05 21:30:44 -0800 |
| commit | 4771feb7c4af6f718efb2a687c99b3bf5387bb2f (patch) | |
| tree | 1c327b4306f711ff3fdba72096cb6e640c4868cc /openstackclient | |
| parent | 0cc3955f0aedab76313aa09edd3f31bb9d08b55d (diff) | |
| download | python-openstackclient-4771feb7c4af6f718efb2a687c99b3bf5387bb2f.tar.gz | |
Adding default user_domain_id parameter only when using
password auth
Change-Id: I31943739cc1b535cbd402c5e9245b2f7a19cfa32
Closes-Bug: #1418810
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/common/clientmanager.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openstackclient/common/clientmanager.py b/openstackclient/common/clientmanager.py index 2908c8ff..974936f8 100644 --- a/openstackclient/common/clientmanager.py +++ b/openstackclient/common/clientmanager.py @@ -114,6 +114,7 @@ class ClientManager(object): # then do not change the behaviour. Otherwise, set the USER_DOMAIN_ID # to 'OS_DEFAULT_DOMAIN' for better usability. if (self._api_version.get('identity') == '3' and + self.auth_plugin_name.endswith('password') and not self._auth_params.get('user_domain_id') and not self._auth_params.get('user_domain_name')): self._auth_params['user_domain_id'] = default_domain |
