diff options
| author | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-08-29 18:53:47 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-08-29 18:53:47 -0700 |
| commit | fab0bbaca8d6cf34f131c4426463bf5c76a0477f (patch) | |
| tree | 5166031c79cfb87905d1a12f3626ff95badb3d4c /nova/auth | |
| parent | 74e5e817905322e609870e60ce55863f35ce7893 (diff) | |
tests pass
Diffstat (limited to 'nova/auth')
| -rw-r--r-- | nova/auth/manager.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/auth/manager.py b/nova/auth/manager.py index a072a143b..62ec3f4e4 100644 --- a/nova/auth/manager.py +++ b/nova/auth/manager.py @@ -252,6 +252,7 @@ class AuthManager(object): __init__ is run every time AuthManager() is called, so we only reset the driver if it is not set or a new driver is specified. """ + self.network_manager = utils.import_object(FLAGS.network_manager) if driver or not getattr(self, 'driver', None): self.driver = utils.import_class(driver or FLAGS.auth_driver) @@ -525,7 +526,8 @@ class AuthManager(object): if project_dict: project = Project(**project_dict) try: - db.network_allocate(context, project.id) + self.network_manager.allocate_network(context, + project.id) except: drv.delete_project(project.id) raise |
