fix errors

This commit is contained in:
Lvov Maxim 2011-06-09 11:57:46 +04:00
parent 0853ebebed
commit 882a266387
3 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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

View File

@ -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].')