CLOUDSTACK-1724:ZWPS: provision to add scope of the primary storage in the zone creation wizard

This commit is contained in:
Pranav Saxena 2013-03-26 21:08:14 +05:30
parent 582f8a0f38
commit 933f1213c1

View File

@ -1177,6 +1177,24 @@
validation: { required: true }
},
scope: {
label: 'label.scope',
select: function(args) {
var scope = [
{ id: 'zone', description: _l('label.zone.wide') },
{ id: 'cluster', description: _l('label.cluster') },
{ id: 'host', description: _l('label.host') }
];
args.response.success({
data: scope
});
}
},
protocol: {
label: 'label.protocol',
validation: { required: true },
@ -3244,6 +3262,7 @@
array1.push("&podId=" + args.data.returnedPod.id);
array1.push("&clusterid=" + args.data.returnedCluster.id);
array1.push("&name=" + todb(args.data.primaryStorage.name));
array1.push("&scope=" +todb(args.data.primaryStorage.scope));
var server = args.data.primaryStorage.server;
var url = null;