mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 10236: cloudStack 3.0 new UI - instance page - make migrate action available regardless of hypervisor type.
This commit is contained in:
parent
21b47541a9
commit
58a1bc71fc
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user