From fd2f989cca060caf05a9a7498e9bf2437e6f0b13 Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Mon, 15 Dec 2014 13:39:11 +1000 Subject: [PATCH] Don't accept *args for client The HTTPClient object that we are passing *args to does not accept any args. Don't accept them from the main client interface. Change-Id: I473bb64be95e058375ebd1e55d4bda4168c3c430 --- glanceclient/v1/client.py | 4 ++-- glanceclient/v2/client.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/glanceclient/v1/client.py b/glanceclient/v1/client.py index 668ccfb3..68c2a336 100644 --- a/glanceclient/v1/client.py +++ b/glanceclient/v1/client.py @@ -29,10 +29,10 @@ class Client(object): http requests. (optional) """ - def __init__(self, endpoint, *args, **kwargs): + def __init__(self, endpoint, **kwargs): """Initialize a new client for the Images v1 API.""" endpoint, version = utils.strip_version(endpoint) self.version = version or 1.0 - self.http_client = http.HTTPClient(endpoint, *args, **kwargs) + self.http_client = http.HTTPClient(endpoint, **kwargs) self.images = ImageManager(self.http_client) self.image_members = ImageMemberManager(self.http_client) diff --git a/glanceclient/v2/client.py b/glanceclient/v2/client.py index 8d6f00ab..428ba619 100644 --- a/glanceclient/v2/client.py +++ b/glanceclient/v2/client.py @@ -34,10 +34,10 @@ class Client(object): http requests. (optional) """ - def __init__(self, endpoint, *args, **kwargs): + def __init__(self, endpoint, **kwargs): endpoint, version = utils.strip_version(endpoint) self.version = version or 2.0 - self.http_client = http.HTTPClient(endpoint, *args, **kwargs) + self.http_client = http.HTTPClient(endpoint, **kwargs) self.schemas = schemas.Controller(self.http_client)