CLOUDSTACK-2074: cloudstack UI - Affinity - VM Wizard - populate Affinity step.

This commit is contained in:
Jessica Wang 2013-04-17 17:43:59 -07:00
parent 9827d79fbd
commit b203e6cbf0
1 changed files with 8 additions and 9 deletions

View File

@ -313,15 +313,14 @@
},
// Step 5: Affinity
function(args) {
args.response.success({
data: {
affinityGroups: [
{ id: 1, name: 'affinity1', description: 'Dummy Affinity Group 1' },
{ id: 2, name: 'affinity2', description: 'Dummy Affinity Group 2' },
]
}
});
function(args) {
$.ajax({
url: createURL('listAffinityGroups'),
success: function(json) {
var items = json.listaffinitygroupsresponse.affinitygroup;
args.response.success({data: {affinityGroups: items}});
}
});
},
// Step 6: Network