Skip to content

Commit b203e6c

Browse files
author
Jessica Wang
committed
CLOUDSTACK-2074: cloudstack UI - Affinity - VM Wizard - populate Affinity step.
1 parent 9827d79 commit b203e6c

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

‎ui/scripts/instanceWizard.js‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,14 @@
313313
},
314314

315315
// Step 5: Affinity
316-
function(args) {
317-
args.response.success({
318-
data: {
319-
affinityGroups: [
320-
{ id: 1, name: 'affinity1', description: 'Dummy Affinity Group 1' },
321-
{ id: 2, name: 'affinity2', description: 'Dummy Affinity Group 2' },
322-
]
323-
}
324-
});
316+
function(args) {
317+
$.ajax({
318+
url: createURL('listAffinityGroups'),
319+
success: function(json) {
320+
var items = json.listaffinitygroupsresponse.affinitygroup;
321+
args.response.success({data: {affinityGroups: items}});
322+
}
323+
});
325324
},
326325

327326
// Step 6: Network

0 commit comments

Comments
 (0)