Remove unsueful 'opts' param

The opts param is unuseful for get_client_instance() func.

Change-Id: Ib187a4d7d5ea92c1dbe5e4505b3646d5d050c53f
Task:41348
This commit is contained in:
caihui 2020-12-01 19:46:14 -08:00
parent 137e58b856
commit 397618e851

View File

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