1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-21 13:57:56 +03:00

feature #1013: Fix create and delete hooks for users and groups

This commit is contained in:
Ruben S. Montero 2012-10-10 11:24:51 +02:00
parent 24a83ca0af
commit 953b1c8967
2 changed files with 6 additions and 2 deletions

View File

@ -169,6 +169,10 @@ int GroupPool::drop(PoolObjectSQL * objsql, string& error_msg)
error_msg = "SQL DB error";
rc = -1;
}
else
{
do_hooks(objsql, Hook::REMOVE);
}
return rc;
}

View File

@ -80,6 +80,8 @@ 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)
@ -196,8 +198,6 @@ UserPool::UserPool(SqlDB * db,
goto error_serveradmin;
}
register_hooks(hook_mads, remotes_location);
return;
error_no_file: