Fix backwards-incompatible API change (method signature)
project_id was changed to projectid in a previous changeset. Fixes bug 1203001 Change-Id: If9c21ae4f3cfbeb89569f6e4bd415c2041dc6294
This commit is contained in:
parent
9b7d470288
commit
f702c25d43
@ -65,8 +65,8 @@ class Client(object):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# FIXME(jesse): projectid isn't required to authenticate
|
# FIXME(jesse): project_id isn't required to authenticate
|
||||||
def __init__(self, username, api_key, projectid, auth_url=None,
|
def __init__(self, username, api_key, project_id, auth_url=None,
|
||||||
insecure=False, timeout=None, proxy_tenant_id=None,
|
insecure=False, timeout=None, proxy_tenant_id=None,
|
||||||
proxy_token=None, region_name=None,
|
proxy_token=None, region_name=None,
|
||||||
endpoint_type='publicURL', extensions=None,
|
endpoint_type='publicURL', extensions=None,
|
||||||
@ -79,7 +79,7 @@ class Client(object):
|
|||||||
# FIXME(comstud): Rename the api_key argument above when we
|
# FIXME(comstud): Rename the api_key argument above when we
|
||||||
# know it's not being used as keyword argument
|
# know it's not being used as keyword argument
|
||||||
password = api_key
|
password = api_key
|
||||||
self.projectid = projectid
|
self.projectid = project_id
|
||||||
self.tenant_id = tenant_id
|
self.tenant_id = tenant_id
|
||||||
self.flavors = flavors.FlavorManager(self)
|
self.flavors = flavors.FlavorManager(self)
|
||||||
self.flavor_access = flavor_access.FlavorAccessManager(self)
|
self.flavor_access = flavor_access.FlavorAccessManager(self)
|
||||||
@ -129,7 +129,7 @@ class Client(object):
|
|||||||
|
|
||||||
self.client = client.HTTPClient(username,
|
self.client = client.HTTPClient(username,
|
||||||
password,
|
password,
|
||||||
projectid=projectid,
|
projectid=project_id,
|
||||||
tenant_id=tenant_id,
|
tenant_id=tenant_id,
|
||||||
auth_url=auth_url,
|
auth_url=auth_url,
|
||||||
insecure=insecure,
|
insecure=insecure,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user