diff options
author | Monty Taylor <mordred@inaugust.com> | 2016-05-09 04:49:03 -0500 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2016-05-09 04:55:49 -0500 |
commit | c4e7f1bfc78eaf114713cd8f81ef004287fece6d (patch) | |
tree | d48f22234de997435a4146cb4eb0d6b780f86d5d | |
parent | 69de54b62456d3197f0366c0844a52c2e5ec76cf (diff) | |
download | python-troveclient-c4e7f1bfc78eaf114713cd8f81ef004287fece6d.tar.gz |
Make username and password non-required params
If a user is passing in a keystoneauth Session object to the session
parameter, Session is the thing that should be handling auth
interactions, and as such troveclient does not need to know the username
and password. In fact, for a given session they may not be values that
exist, depending on keystone auth plugin. Further, they are merely
passthrough parameters to _construct_http_client which does not require
them.
Change-Id: I3b71c79a90736eef5d0951bb6e7b8a4d95ec015f
-rw-r--r-- | troveclient/v1/client.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/troveclient/v1/client.py b/troveclient/v1/client.py index af50b87..0da54be 100644 --- a/troveclient/v1/client.py +++ b/troveclient/v1/client.py @@ -48,7 +48,8 @@ class Client(object): """ - def __init__(self, username, password, project_id=None, auth_url='', + def __init__(self, username=None, password=None, project_id=None, + auth_url='', insecure=False, timeout=None, tenant_id=None, proxy_tenant_id=None, proxy_token=None, region_name=None, endpoint_type='publicURL', extensions=None, |