1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Merge branch 'feature-1144'

This commit is contained in:
Ruben S. Montero 2012-10-11 17:12:01 +02:00
commit 3df4c6b65a
2 changed files with 11 additions and 0 deletions

View File

@ -333,6 +333,7 @@ DATASTORE_MAD = [
# - CREATE, when the VM is created (onevm create)
# - PROLOG, when the VM is in the prolog state
# - RUNNING, after the VM is successfully booted
# - UNKNOWN, when the VM is in the unknown state
# - SHUTDOWN, after the VM is shutdown
# - STOP, after the VM is stopped (including VM image transfers)
# - DONE, after the VM is deleted or shutdown

View File

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