bug 10236: cloudStack 3.0 new UI - instance page - make migrate action available regardless of hypervisor type.

This commit is contained in:
Jessica Wang 2011-12-09 12:01:17 -08:00
parent 21b47541a9
commit 58a1bc71fc

View File

@ -1628,20 +1628,14 @@
allowedActions.push("stop");
allowedActions.push("restart");
allowedActions.push("destroy");
if (isAdmin()
&& (jsonObj.rootdevicetype == 'NetworkFilesystem' || jsonObj.rootdevicetype == 'IscsiLUN' || jsonObj.rootdevicetype == 'PreSetup' || jsonObj.rootdevicetype == 'OCFS2')
//&& (jsonObj.hypervisor == 'XenServer' || jsonObj.hypervisor == 'VMware')
)
{
allowedActions.push("migrate");
}
if (isAdmin())
allowedActions.push("migrate");
if (jsonObj.isoid == null) {
allowedActions.push("attachISO");
}
else {
allowedActions.push("detachISO");
}
if (jsonObj.isoid == null)
allowedActions.push("attachISO");
else
allowedActions.push("detachISO");
allowedActions.push("resetPassword");
allowedActions.push("changeService");