summaryrefslogtreecommitdiffstats
path: root/nova/auth/dbdriver.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/auth/dbdriver.py')
-rw-r--r--nova/auth/dbdriver.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/auth/dbdriver.py b/nova/auth/dbdriver.py
index d8dad8edd..d1e3f2ed5 100644
--- a/nova/auth/dbdriver.py
+++ b/nova/auth/dbdriver.py
@@ -162,6 +162,8 @@ class DbDriver(object):
values['description'] = description
db.project_update(context.get_admin_context(), project_id, values)
+ if not self.is_in_project(manager_uid, project_id):
+ self.add_to_project(manager_uid, project_id)
def add_to_project(self, uid, project_id):
"""Add user to project"""