diff --git a/src/sunstone/public/js/opennebula.js b/src/sunstone/public/js/opennebula.js index b39e679910..42e5d9bc82 100644 --- a/src/sunstone/public/js/opennebula.js +++ b/src/sunstone/public/js/opennebula.js @@ -140,6 +140,30 @@ var OpenNebula = { "ERROR", "USER"][value]); break; + case "VM_MIGRATE_ACTION": + case "vm_migrate_action": + state = tr(["none", + "migrate", + "live-migrate", + "shutdown", + "shutdown-hard", + "undeploy", + "undeploy-hard", + "hold", + "release", + "stop", + "suspend", + "resume", + "boot", + "destroy", + "destroy-recreate", + "reboot", + "reboot-hard", + "resched", + "unresched", + "poweroff", + "poweroff-hard"][value]); + break; default: return value; } diff --git a/src/sunstone/public/js/plugins/vms-tab.js b/src/sunstone/public/js/plugins/vms-tab.js index dfa400ef92..f893725272 100644 --- a/src/sunstone/public/js/plugins/vms-tab.js +++ b/src/sunstone/public/js/plugins/vms-tab.js @@ -1183,6 +1183,7 @@ function generatePlacementTable(vm){ \ '+tr("#")+'\ '+tr("Host")+'\ + '+tr("Action")+'\ '+tr("Reason")+'\ '+tr("Chg time")+'\ '+tr("Total time")+'\ @@ -1225,9 +1226,10 @@ function generatePlacementTable(vm){ html += ' \ - '+history[i].SEQ+'\ + '+history[i].SEQ+'\ '+history[i].HOSTNAME+'\ - '+OpenNebula.Helper.resource_state("VM_MIGRATE_REASON",parseInt(history[i].REASON, 10))+'\ + '+OpenNebula.Helper.resource_state("VM_MIGRATE_ACTION",parseInt(history[i].ACTION, 10))+'\ + '+OpenNebula.Helper.resource_state("VM_MIGRATE_REASON",parseInt(history[i].REASON, 10))+'\ '+pretty_time(history[i].STIME)+'\ '+pretty_time_runtime(dtime)+'\ '+pretty_time_runtime(dtime2)+'\