diff options
| author | andy <github@anarkystic.com> | 2010-08-17 11:53:30 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-08-17 11:53:30 +0000 |
| commit | de6576d289e15935fc6ccafe9703191a01deb6c5 (patch) | |
| tree | 91148914ffa20f5aa5498d40dc665d1b50a3908b /nova/adminclient.py | |
| parent | b07a85167ffde07747fc6e892df46686b95529e8 (diff) | |
| parent | d508418214016d5c00aa8d304f9498f5b99a960b (diff) | |
| download | nova-de6576d289e15935fc6ccafe9703191a01deb6c5.tar.gz nova-de6576d289e15935fc6ccafe9703191a01deb6c5.tar.xz nova-de6576d289e15935fc6ccafe9703191a01deb6c5.zip | |
Fixes quite a few style issues across the entire nova codebase bringing it much closer to the guide described in HACKING.
Diffstat (limited to 'nova/adminclient.py')
| -rw-r--r-- | nova/adminclient.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/adminclient.py b/nova/adminclient.py index 242298a75..0ca32b1e5 100644 --- a/nova/adminclient.py +++ b/nova/adminclient.py @@ -20,6 +20,7 @@ Nova User API client library. """ import base64 + import boto from boto.ec2.regioninfo import RegionInfo @@ -57,6 +58,7 @@ class UserInfo(object): elif name == 'secretkey': self.secretkey = str(value) + class UserRole(object): """ Information about a Nova user's role, as parsed through SAX. @@ -79,6 +81,7 @@ class UserRole(object): else: setattr(self, name, str(value)) + class ProjectInfo(object): """ Information about a Nova project, as parsed through SAX @@ -114,12 +117,14 @@ class ProjectInfo(object): else: setattr(self, name, str(value)) + class ProjectMember(object): """ Information about a Nova project member, as parsed through SAX. Fields include: memberId """ + def __init__(self, connection=None): self.connection = connection self.memberId = None @@ -135,6 +140,7 @@ class ProjectMember(object): self.memberId = value else: setattr(self, name, str(value)) + class HostInfo(object): """ @@ -163,6 +169,7 @@ class HostInfo(object): def endElement(self, name, value, connection): setattr(self, name, value) + class NovaAdminClient(object): def __init__(self, clc_ip='127.0.0.1', region='nova', access_key='admin', secret_key='admin', **kwargs): |
