File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77257725
77267726 var clusterName = args . data . name ;
77277727
7728- if ( args . data . cpuovercommit != "" )
7729- array1 . push ( "&cpuovercommitratio=" + todb ( args . data . cpuovercommit ) ) ;
7728+ if ( args . data . cpuovercommit != "" && args . data . cpuovercommit > 0 ) {
7729+
7730+ array1 . push ( "&cpuovercommitratio=" + todb ( args . data . cpuovercommit ) ) ;
77307731
7731- if ( args . data . memoryovercommit != "" )
7732+ }
7733+
7734+ if ( args . data . memoryovercommit != "" && args . data . memoryovercommit > 0 )
77327735 array1 . push ( "&memoryovercommitratio=" + todb ( args . data . memoryovercommit ) ) ;
77337736
77347737 if ( args . data . hypervisor == "VMware" ) {
89898992 label : 'label.scope' ,
89908993 select : function ( args ) {
89918994 var scope = [
8992- { id : 'zone-wide ' , description : _l ( 'label.zone.wide' ) } ,
8995+ { id : 'zone' , description : _l ( 'label.zone.wide' ) } ,
89938996 { id : 'cluster' , description : _l ( 'label.cluster' ) } ,
89948997 { id : 'host' , description : _l ( 'label.host' ) }
89958998 ] ;
90029005 var $form = $ ( this ) . closest ( 'form' ) ;
90039006 var scope = $ ( this ) . val ( ) ;
90049007
9005- if ( scope == 'zone-wide ' ) {
9008+ if ( scope == 'zone' ) {
90069009 $form . find ( '.form-item[rel=podId]' ) . hide ( ) ;
90079010 $form . find ( '.form-item[rel=clusterId]' ) . hide ( ) ;
90089011 $form . find ( '.form-item[rel=hostId]' ) . hide ( ) ;
You can’t perform that action at this time.
0 commit comments