mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
bug #1723: Install user hooks after bootstrapping the database.
(cherry picked from commit 8c9498132e)
This commit is contained in:
1 parent
47694b87bb
commit
c96d5d5dfb
1 file changed
+4
-2
+4
-2
@@ -80,8 +80,6 @@ UserPool::UserPool(SqlDB * db,
|
||||
|
||||
_session_expiration_time = __session_expiration_time;
|
||||
|
||||
register_hooks(hook_mads, remotes_location);
|
||||
|
||||
User * oneadmin_user = get(0, true);
|
||||
|
||||
if (oneadmin_user != 0)
|
||||
@@ -89,6 +87,8 @@ UserPool::UserPool(SqlDB * db,
|
||||
oneadmin_name = oneadmin_user->get_name();
|
||||
oneadmin_user->unlock();
|
||||
|
||||
register_hooks(hook_mads, remotes_location);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -198,6 +198,8 @@ UserPool::UserPool(SqlDB * db,
|
||||
goto error_serveradmin;
|
||||
}
|
||||
|
||||
register_hooks(hook_mads, remotes_location);
|
||||
|
||||
return;
|
||||
|
||||
error_no_file:
|
||||
|
||||
Reference in new issue
Block a user