From ced94b532bfcf8a9c783baa93abf268a297f0094 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 31 Jul 2012 16:02:18 -0700 Subject: [PATCH] cloudstack 3.0 UI - autoscale - edit mode - pass id parameter to updateAutoScaleVmProfile API. --- ui/scripts/autoscaler.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js index 608739f5de3..0a938677e2c 100644 --- a/ui/scripts/autoscaler.js +++ b/ui/scripts/autoscaler.js @@ -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