From f702c25d4364583d6532bf11b2cce1107994bcce Mon Sep 17 00:00:00 2001 From: Julie Pichon Date: Fri, 12 Jul 2013 08:27:28 +0100 Subject: [PATCH] Fix backwards-incompatible API change (method signature) project_id was changed to projectid in a previous changeset. Fixes bug 1203001 Change-Id: If9c21ae4f3cfbeb89569f6e4bd415c2041dc6294 --- novaclient/v1_1/client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/novaclient/v1_1/client.py b/novaclient/v1_1/client.py index 0c8f8fccb..50ab46cff 100644 --- a/novaclient/v1_1/client.py +++ b/novaclient/v1_1/client.py @@ -65,8 +65,8 @@ class Client(object): """ - # FIXME(jesse): projectid isn't required to authenticate - def __init__(self, username, api_key, projectid, auth_url=None, + # FIXME(jesse): project_id isn't required to authenticate + def __init__(self, username, api_key, project_id, auth_url=None, insecure=False, timeout=None, proxy_tenant_id=None, proxy_token=None, region_name=None, endpoint_type='publicURL', extensions=None, @@ -79,7 +79,7 @@ class Client(object): # FIXME(comstud): Rename the api_key argument above when we # know it's not being used as keyword argument password = api_key - self.projectid = projectid + self.projectid = project_id self.tenant_id = tenant_id self.flavors = flavors.FlavorManager(self) self.flavor_access = flavor_access.FlavorAccessManager(self) @@ -129,7 +129,7 @@ class Client(object): self.client = client.HTTPClient(username, password, - projectid=projectid, + projectid=project_id, tenant_id=tenant_id, auth_url=auth_url, insecure=insecure,