File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 168168 expires : 1
169169 } ) ;
170170
171- g_KVMsnapshotenabled = json . listcapabilitiesresponse . capability . KVMsnapshotenabled ; //boolean
172- $ . cookie ( 'KVMsnapshotenabled ' , g_KVMsnapshotenabled , {
171+ g_kvmsnapshotenabled = json . listcapabilitiesresponse . capability . kvmsnapshotenabled ; //boolean
172+ $ . cookie ( 'kvmsnapshotenabled ' , g_kvmsnapshotenabled , {
173173 expires : 1
174174 } ) ;
175175
309309 expires : 1
310310 } ) ;
311311
312- g_KVMsnapshotenabled = json . listcapabilitiesresponse . capability . KVMsnapshotenabled ; //boolean
313- $ . cookie ( 'KVMsnapshotenabled ' , g_KVMsnapshotenabled , {
312+ g_kvmsnapshotenabled = json . listcapabilitiesresponse . capability . kvmsnapshotenabled ; //boolean
313+ $ . cookie ( 'kvmsnapshotenabled ' , g_kvmsnapshotenabled , {
314314 expires : 1
315315 } ) ;
316316
386386 g_timezoneoffset = null ;
387387 g_timezone = null ;
388388 g_supportELB = null ;
389- g_KVMsnapshotenabled = null ;
389+ g_kvmsnapshotenabled = null ;
390390 g_regionsecondaryenabled = null ;
391391 g_loginCmdText = null ;
392392
Original file line number Diff line number Diff line change 21842184 } else if ( jsonObj . state == 'Running' ) {
21852185 allowedActions . push ( "stop" ) ;
21862186 allowedActions . push ( "restart" ) ;
2187- if ( jsonObj . hypervisor != 'KVM' || g_KVMsnapshotenabled == true )
2187+ if ( jsonObj . hypervisor != 'KVM' || g_kvmsnapshotenabled == true )
21882188 allowedActions . push ( "snapshot" ) ;
21892189 allowedActions . push ( "destroy" ) ;
21902190 allowedActions . push ( "reset" ) ;
22142214 allowedActions . push ( "start" ) ;
22152215 allowedActions . push ( "destroy" ) ;
22162216 allowedActions . push ( "reset" ) ;
2217- if ( jsonObj . hypervisor != 'KVM' || g_KVMsnapshotenabled == true )
2217+ if ( jsonObj . hypervisor != 'KVM' || g_kvmsnapshotenabled == true )
22182218 allowedActions . push ( "snapshot" ) ;
22192219 allowedActions . push ( "scaleUp" ) ; //when vm is stopped, scaleUp is supported for all hypervisors
22202220 allowedActions . push ( "changeAffinity" ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ var g_enableLogging = false;
2525var g_timezoneoffset = null ;
2626var g_timezone = null ;
2727var g_supportELB = null ;
28- var g_KVMsnapshotenabled = null ;
28+ var g_kvmsnapshotenabled = null ;
2929var g_regionsecondaryenabled = null ;
3030var g_userPublicTemplateEnabled = "true" ;
3131var g_cloudstackversion = null ;
Original file line number Diff line number Diff line change 19201920 if ( jsonObj . hypervisor != "Ovm" && jsonObj . state == "Ready" ) {
19211921 if ( jsonObj . hypervisor == 'KVM' ) {
19221922 if ( jsonObj . vmstate == 'Running' ) {
1923- if ( g_KVMsnapshotenabled == true ) { //"kvm.snapshot.enabled" flag should be taken to account only when snapshot is being created for Running vm (CLOUDSTACK-4428)
1923+ if ( g_kvmsnapshotenabled == true ) { //"kvm.snapshot.enabled" flag should be taken to account only when snapshot is being created for Running vm (CLOUDSTACK-4428)
19241924 allowedActions . push ( "takeSnapshot" ) ;
19251925 allowedActions . push ( "recurringSnapshot" ) ;
19261926 }
You can’t perform that action at this time.
0 commit comments