1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Added the on done hook (#167)

git-svn-id: http://svn.opennebula.org/one/trunk@900 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Jaime Melis 2009-10-28 14:44:16 +00:00
parent eb93134628
commit 9127ef6da2

View File

@ -116,6 +116,16 @@ VirtualMachinePool::VirtualMachinePool(SqliteDB * db,
state_hook = true;
}
else if ( on == "DONE" )
{
VirtualMachineStateHook * hook;
hook = new VirtualMachineStateHook(name, cmd, arg, remote,
VirtualMachine::LCM_INIT, VirtualMachine::DONE);
add_hook(hook);
state_hook = true;
}
else
{
ostringstream oss;