Skip to content

Commit aa40c7e

Browse files
committed
CLOUDSTACK-1407:add primary storage screen throught UI doesn't have scope field
1 parent 5b6a4a6 commit aa40c7e

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

ui/scripts/system.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7725,10 +7725,13 @@
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") {
@@ -8989,7 +8992,7 @@
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
];
@@ -9002,7 +9005,7 @@
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();

0 commit comments

Comments
 (0)