Remove unsueful 'opts' param

The opts param is unuseful for get_client_instance() func.

Change-Id: Ib187a4d7d5ea92c1dbe5e4505b3646d5d050c53f
This commit is contained in:
caihui 2020-12-01 19:46:14 -08:00
parent 137e58b856
commit 397618e851
1 changed files with 2 additions and 2 deletions

View File

@ -174,10 +174,10 @@ def get_client_class(api_version=None):
return importutils.import_class(api_string)
def get_client_instance(kwargs={}, opts=None, api_version=None):
def get_client_instance(opts={}, api_version=None):
"""Get Freezerclient Instance.
We will the provided auth dict to instantiate a client instance
Returns freezerclient.v{x}.client.Client Object
:return: Object
return get_client_class(api_version)(opts=opts, **kwargs)
return get_client_class(api_version)(**opts)