Fix guess auth version error

Currently, the guess auth version in freezer client
is not correct, because opts.os_identity_api_version
has never been initialized. This patch will fix it.

Change-Id: Ie5ff077213956a48dcd13c75b6855be7402d253c
Closes-Bug: #1715539
This commit is contained in:
Pengju Jiao 2017-09-07 12:32:07 +08:00
parent bce796ca18
commit 254e609cff
2 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,7 @@ class Client(object):
self.opts.os_project_domain_name = project_domain_name or None
self.opts.os_project_domain_id = project_domain_id or None
self.opts.auth_version = version
self.opts.os_identity_api_version = version
self.opts.os_cacert = cacert or None
self.opts.insecure = insecure
self.opts.cert = cert

View File

@ -137,6 +137,7 @@ class Client(object):
self.opts.os_project_domain_name = project_domain_name or None
self.opts.os_project_domain_id = project_domain_id or None
self.opts.auth_version = version
self.opts.os_identity_api_version = version
self.opts.os_cacert = cacert or None
self.opts.insecure = insecure
self.opts.cert = cert