diff options
author | Andrey Kurilin <akurilin@mirantis.com> | 2016-12-02 19:10:34 +0200 |
---|---|---|
committer | Andrey Kurilin <andr.kurilin@gmail.com> | 2016-12-15 19:49:03 +0200 |
commit | 73196fd3c1b938386cc162969a03a9bf1286b03d (patch) | |
tree | 8a2493392efc3feab1fab2b0ed9d51c8a1ff4b7b /novaclient/client.py | |
parent | bf09ad844e7ccfc724ff502b34389e832a7ab7a2 (diff) | |
download | python-novaclient-73196fd3c1b938386cc162969a03a9bf1286b03d.tar.gz |
Remove redundant args of _construct_http_client
Arguments 'extenstions' and 'no_cache' were not transmitted to
'_construct_http_client' method. They are redundant
Change-Id: Ibe0f874e510eef7cc28fcee87b0083c7febd5161
Diffstat (limited to 'novaclient/client.py')
-rw-r--r-- | novaclient/client.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/novaclient/client.py b/novaclient/client.py index 44111418..c5590e7c 100644 --- a/novaclient/client.py +++ b/novaclient/client.py @@ -688,11 +688,9 @@ def _construct_http_client(api_version=None, cacert=None, connection_pool=False, endpoint_type='publicURL', - extensions=None, http_log_debug=False, insecure=False, interface=None, - no_cache=True, os_cache=False, password=None, project_id=None, @@ -876,6 +874,11 @@ def Client(version, username=None, api_key=None, project_id=None, _check_arguments(kwargs, "Ocata", "auth_plugin") _check_arguments(kwargs, "Ocata", "auth_system") + if "no_cache" in kwargs: + _check_arguments(kwargs, "Ocata", "no_cache", "os_cache") + # os_cache is not a fully compatible with no_cache, so we need to + # apply this custom processing + kwargs["os_cache"] = not kwargs["os_cache"] api_version, client_class = _get_client_class_and_version(version) kwargs.pop("direct_use", None) |