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