From c4e7f1bfc78eaf114713cd8f81ef004287fece6d Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 9 May 2016 04:49:03 -0500 Subject: [PATCH] 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 --- troveclient/v1/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/troveclient/v1/client.py b/troveclient/v1/client.py index af50b870..0da54bef 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,