1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

Fix wrong name in oned.conf and mapping for snapshot create

This commit is contained in:
Ruben S. Montero 2018-06-11 16:38:26 +02:00
parent 0a4e5e3375
commit 5f77b49c85
2 changed files with 4 additions and 4 deletions

View File

@ -524,7 +524,7 @@ VM_MAD = [
KEEP_SNAPSHOTS = "no",
IMPORTED_VMS_ACTIONS = "terminate, terminate-hard, hold, release, suspend,
resume, delete, reboot, reboot-hard, resched, unresched, disk-attach,
disk-detach, nic-attach, nic-detach, snap-create, snap-delete"
disk-detach, nic-attach, nic-detach, snapshot-create, snapshot-delete"
]
#-------------------------------------------------------------------------------
@ -550,7 +550,7 @@ VM_MAD = [
IMPORTED_VMS_ACTIONS = "terminate, terminate-hard, hold, release, suspend,
resume, delete, reboot, reboot-hard, resched, unresched, poweroff,
poweroff-hard, disk-attach, disk-detach, nic-attach, nic-detach,
snap-create, snap-delete, migrate, live-migrate"
snapshot-create, snapshot-delete, migrate, live-migrate"
]
#-------------------------------------------------------------------------------

View File

@ -514,7 +514,7 @@ string History::action_to_str(VMAction action)
st = "update";
break;
case SNAPSHOT_CREATE_ACTION:
st = "snapshot-resize";
st = "snapshot-create";
break;
case SNAPSHOT_DELETE_ACTION:
st = "snapshot-delete";
@ -679,7 +679,7 @@ int History::action_from_str(const string& st, VMAction& action)
{
action = UPDATE_ACTION;
}
else if ( st == "snapshot-resize")
else if ( st == "snapshot-create")
{
action = SNAPSHOT_CREATE_ACTION;
}