diff options
author | Andrey Kurilin <akurilin@mirantis.com> | 2016-12-02 18:38:06 +0200 |
---|---|---|
committer | Andrey Kurilin <andr.kurilin@gmail.com> | 2016-12-15 19:49:03 +0200 |
commit | 330516543b052b29c9663139086d635c7a27b301 (patch) | |
tree | 82e079e294177ab5d06ef35b760e4a4d6416ea72 /novaclient/client.py | |
parent | f9d9a3d4dc7466800bbbeb928484ffa0ff5adab2 (diff) | |
download | python-novaclient-330516543b052b29c9663139086d635c7a27b301.tar.gz |
Sort arguments for client's methods
We have a lot of arguments in several Clients methods. Reviewing their
changes is a hard task, so let's sort them to simplify reviews.
Change-Id: Ie78773fd92017fbc4631d0fc6ae9da2e15935537
Diffstat (limited to 'novaclient/client.py')
-rw-r--r-- | novaclient/client.py | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/novaclient/client.py b/novaclient/client.py index 2e02be3f..3d95f57b 100644 --- a/novaclient/client.py +++ b/novaclient/client.py @@ -680,18 +680,36 @@ class HTTPClient(object): return self._extract_service_catalog(url, resp, respbody) -def _construct_http_client(username=None, password=None, project_id=None, - auth_url=None, insecure=False, timeout=None, - proxy_tenant_id=None, proxy_token=None, - region_name=None, endpoint_type='publicURL', - extensions=None, service_type='compute', - service_name=None, volume_service_name=None, - timings=False, bypass_url=None, os_cache=False, - no_cache=True, http_log_debug=False, - auth_token=None, cacert=None, tenant_id=None, - user_id=None, connection_pool=False, session=None, - auth=None, user_agent='python-novaclient', - interface=None, api_version=None, **kwargs): +def _construct_http_client(api_version=None, + auth=None, + auth_token=None, + auth_url=None, + bypass_url=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, + proxy_tenant_id=None, + proxy_token=None, + region_name=None, + service_name=None, + service_type='compute', + session=None, + tenant_id=None, + timeout=None, + timings=False, + user_agent='python-novaclient', + user_id=None, + username=None, + volume_service_name=None, + **kwargs): # TODO(mordred): If not session, just make a Session, then return # SessionClient always if session: |