diff options
| author | Eric Day <eday@oddments.org> | 2010-12-03 12:21:18 -0800 |
|---|---|---|
| committer | Eric Day <eday@oddments.org> | 2010-12-03 12:21:18 -0800 |
| commit | 4203aa1060e5a97bed86d2e201c4c2443ef7e042 (patch) | |
| tree | 492b8fc6f7d255c92843c016dd30e9d2592c8b32 /nova/auth | |
| parent | 98a0b2513489fc50e0687f75ef859293afff9a6f (diff) | |
| download | nova-4203aa1060e5a97bed86d2e201c4c2443ef7e042.tar.gz nova-4203aa1060e5a97bed86d2e201c4c2443ef7e042.tar.xz nova-4203aa1060e5a97bed86d2e201c4c2443ef7e042.zip | |
Finished cleaning up the openstack servers API, it no longer touches the database directly. Also cleaned up similar things in ec2 API and refactored a couple methods in nova.compute.api to accomodate this work.
Diffstat (limited to 'nova/auth')
| -rw-r--r-- | nova/auth/manager.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/auth/manager.py b/nova/auth/manager.py index 7b2b68161..11c3bd6df 100644 --- a/nova/auth/manager.py +++ b/nova/auth/manager.py @@ -624,6 +624,10 @@ class AuthManager(object): with self.driver() as drv: drv.modify_user(uid, access_key, secret_key, admin) + @staticmethod + def get_key_pairs(context): + return db.key_pair_get_all_by_user(context.elevated(), context.user_id) + def get_credentials(self, user, project=None): """Get credential zip for user in project""" if not isinstance(user, User): |
