cloudstack 3.0 UI - autoscale - edit mode - pass id parameter to updateAutoScaleVmProfile API.

This commit is contained in:
Jessica Wang 2012-07-31 16:02:18 -07:00
parent efc16fd99d
commit ced94b532b
1 changed files with 7 additions and 1 deletions

View File

@ -99,7 +99,11 @@
diskOfferingId: diskOfferingId,
snmpCommunity: autoscaleVmProfile.snmpcommunity,
snmpPort: autoscaleVmProfile.snmpport,
username: autoscaleVmProfile.autoscaleuserid
username: autoscaleVmProfile.autoscaleuserid,
context: {
autoscaleVmGroup: autoscaleVmGroup,
autoscaleVmProfile: autoscaleVmProfile
}
//isAdvanced: false // Set this to true if any advanced field data is present
};
@ -985,6 +989,8 @@
else { //from an existing LB
apiCmd = 'updateAutoScaleVmProfile';
apiCmdRes = 'updateautoscalevmprofileresponse';
array1.push("&id=" + args.context.originalAutoscaleData.context.autoscaleVmProfile.id);
}
//apply to both create and update