From 397618e8515d87244ad2a466a9e87ca9a47deb88 Mon Sep 17 00:00:00 2001 From: caihui Date: Tue, 1 Dec 2020 19:46:14 -0800 Subject: [PATCH] Remove unsueful 'opts' param The opts param is unuseful for get_client_instance() func. Change-Id: Ib187a4d7d5ea92c1dbe5e4505b3646d5d050c53f Task:41348 --- freezerclient/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freezerclient/utils.py b/freezerclient/utils.py index 4e13b5e..413b8ba 100644 --- a/freezerclient/utils.py +++ b/freezerclient/utils.py @@ -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)