Skip to content

Commit

Permalink
AzureWebAppContainerV1: support \n character for multiline (#19128)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-mohithgc authored Oct 17, 2023
1 parent af39f75 commit bf37f3e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tasks/AzureWebAppContainerV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 1,
"Minor": 230,
"Patch": 0
"Patch": 1
},
"minimumAgentVersion": "2.104.1",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureWebAppContainerV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"version": {
"Major": 1,
"Minor": 230,
"Patch": 0
"Patch": 1
},
"minimumAgentVersion": "2.104.1",
"groups": [
Expand Down
5 changes: 5 additions & 0 deletions Tasks/AzureWebAppContainerV1/taskparameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export class TaskParametersUtility {
taskParameters.azureEndpoint = await new AzureRMEndpoint(taskParameters.connectedServiceName).getEndpoint();
console.log(tl.loc('GotconnectiondetailsforazureRMWebApp0', taskParameters.WebAppName));

if(taskParameters.AppSettings && taskParameters.AppSettings !== null)
{
taskParameters.AppSettings = taskParameters.AppSettings.replace('\n',' ');
}

let appDetails = await this.getWebAppKind(taskParameters);
taskParameters.ResourceGroupName = appDetails["resourceGroupName"];
taskParameters.OSType = appDetails["osType"];
Expand Down

0 comments on commit bf37f3e

Please sign in to comment.