fix errors
This commit is contained in:
parent
0853ebebed
commit
882a266387
novaclient
@ -49,7 +49,7 @@ class OpenStack(object):
|
||||
|
||||
Create an instance with your creds::
|
||||
|
||||
>>> os = OpenStack(USERNAME, API_KEY, AUTH_URL)
|
||||
>>> os = OpenStack(USERNAME, API_KEY, PROJECT_ID, AUTH_URL)
|
||||
|
||||
Then call methods on its managers::
|
||||
|
||||
@ -61,7 +61,7 @@ class OpenStack(object):
|
||||
&c.
|
||||
"""
|
||||
|
||||
def __init__(self, username, apikey, projectid
|
||||
def __init__(self, username, apikey, projectid,
|
||||
auth_url='https://auth.api.rackspacecloud.com/v1.0'):
|
||||
self.backup_schedules = BackupScheduleManager(self)
|
||||
self.client = OpenStackClient(username, apikey, projectid, auth_url)
|
||||
|
@ -28,7 +28,7 @@ class OpenStackClient(httplib2.Http):
|
||||
|
||||
USER_AGENT = 'python-novaclient/%s' % novaclient.__version__
|
||||
|
||||
def __init__(self, user, apikey, projectid auth_url):
|
||||
def __init__(self, user, apikey, projectid, auth_url):
|
||||
super(OpenStackClient, self).__init__()
|
||||
self.user = user
|
||||
self.apikey = apikey
|
||||
|
@ -96,7 +96,7 @@ class OpenStackShell(object):
|
||||
default=env('NOVA_API_KEY'),
|
||||
help='Defaults to env[NOVA_API_KEY].')
|
||||
|
||||
self.parser.add_argument('--projectid',
|
||||
self.parser.add_argument('--projectid',
|
||||
default=env('NOVA_PROJECT_ID'),
|
||||
help='Defaults to env[NOVA_PROJECT_ID].')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user