diff options
| author | Todd Willey <todd@ansolabs.com> | 2011-01-19 15:16:12 -0500 |
|---|---|---|
| committer | Todd Willey <todd@ansolabs.com> | 2011-01-19 15:16:12 -0500 |
| commit | 46c1c554e7d98959a2b20597d6b0f2b0f648cdc9 (patch) | |
| tree | 368f8a98531dac54672924de526a05eda325f1d0 /nova/adminclient.py | |
| parent | 19aae256676e45a8147f25553398ca980b3e1bd4 (diff) | |
Whitespace (pep8) cleanups.
Diffstat (limited to 'nova/adminclient.py')
| -rw-r--r-- | nova/adminclient.py | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/nova/adminclient.py b/nova/adminclient.py index 90ad4d9dd..0cdb8c6fb 100644 --- a/nova/adminclient.py +++ b/nova/adminclient.py @@ -190,20 +190,20 @@ class HostInfo(object): setattr(self, name, value) -class SimpleResponse(object): - def __init__(self, connection=None): - self.connection = connection - self.status = None +class SimpleResponse(object): + def __init__(self, connection=None): + self.connection = connection + self.status = None self.message = '' - - def __repr__(self): - return 'Status:%s' % self.status - - def startElement(self, name, attrs, connection): - return None - - def endElement(self, name, value, connection): - setattr(self, name.lower(), str(value)) + + def __repr__(self): + return 'Status:%s' % self.status + + def startElement(self, name, attrs, connection): + return None + + def endElement(self, name, value, connection): + setattr(self, name.lower(), str(value)) class NovaAdminClient(object): @@ -224,8 +224,7 @@ class NovaAdminClient(object): self.apiconn = boto.connect_ec2(aws_access_key_id=access_key, aws_secret_access_key=secret_key, is_secure=parts['is_secure'], - region=RegionInfo(None, - region, + region=RegionInfo(None, region, parts['ip']), port=parts['port'], path='/services/Admin', |
