mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7383: UI > Instances > detailView > snapshot option > hide this option when hypervisor is LXC.
This commit is contained in:
parent
4e80253b36
commit
6839652109
|
|
@ -2248,8 +2248,12 @@
|
|||
} else if (jsonObj.state == 'Running') {
|
||||
allowedActions.push("stop");
|
||||
allowedActions.push("restart");
|
||||
if (jsonObj.hypervisor != 'KVM' || g_kvmsnapshotenabled == true)
|
||||
|
||||
if ((jsonObj.hypervisor != 'KVM' || g_kvmsnapshotenabled == true)
|
||||
|| (jsonObj.hypervisor != 'LXC')) {
|
||||
allowedActions.push("snapshot");
|
||||
}
|
||||
|
||||
allowedActions.push("destroy");
|
||||
allowedActions.push("reinstall");
|
||||
|
||||
|
|
@ -2278,8 +2282,12 @@
|
|||
allowedActions.push("start");
|
||||
allowedActions.push("destroy");
|
||||
allowedActions.push("reinstall");
|
||||
if (jsonObj.hypervisor != 'KVM' || g_kvmsnapshotenabled == true)
|
||||
|
||||
if ((jsonObj.hypervisor != 'KVM' || g_kvmsnapshotenabled == true)
|
||||
|| (jsonObj.hypervisor != 'LXC')) {
|
||||
allowedActions.push("snapshot");
|
||||
}
|
||||
|
||||
allowedActions.push("scaleUp"); //when vm is stopped, scaleUp is supported for all hypervisors
|
||||
allowedActions.push("changeAffinity");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue