Merge "Remove redundant code in nova_client.Client"
This commit is contained in:
commit
2245becc28
@ -41,11 +41,12 @@ def logged(func):
|
|||||||
|
|
||||||
|
|
||||||
class Client(object):
|
class Client(object):
|
||||||
|
"""A client which gets information via python-novaclient."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Returns a nova Client object."""
|
"""Initialize a nova client object."""
|
||||||
conf = cfg.CONF.service_credentials
|
conf = cfg.CONF.service_credentials
|
||||||
tenant = conf.os_tenant_id and conf.os_tenant_id or conf.os_tenant_name
|
tenant = conf.os_tenant_id or conf.os_tenant_name
|
||||||
self.nova_client = nova_client.Client(
|
self.nova_client = nova_client.Client(
|
||||||
username=conf.os_username,
|
username=conf.os_username,
|
||||||
api_key=conf.os_password,
|
api_key=conf.os_password,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user