Skip to content

Commit 278095f

Browse files
authored
Fix for empty startupcommand (#13953) (#13965)
* Fix for empty startupcommand * removing unwanted library
1 parent bf315d4 commit 278095f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Tasks/AzureRmWebAppDeploymentV3/operations/ContainerBasedDeploymentUtility.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ export class ContainerBasedDeploymentUtility {
4444
var startupCommand: string = taskParameters.StartupCommand;
4545
var configSettingsParameters = taskParameters.ConfigurationSettings;
4646
var appSettingsNewProperties = !!configSettingsParameters ? parse(configSettingsParameters.trim()): { };
47-
appSettingsNewProperties.appCommandLine = {
48-
'value': startupCommand
47+
if(!!startupCommand) {
48+
appSettingsNewProperties.appCommandLine = {
49+
'value': startupCommand
50+
}
4951
}
50-
5152
appSettingsNewProperties.linuxFxVersion = {
5253
'value': "DOCKER|" + imageName
5354
}

Tasks/AzureRmWebAppDeploymentV3/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"author": "Microsoft Corporation",
1818
"version": {
1919
"Major": 3,
20-
"Minor": 178,
20+
"Minor": 179,
2121
"Patch": 0
2222
},
2323
"releaseNotes": "What's new in Version 3.0: <br/>&nbsp;&nbsp;Supports File Transformations (XDT) <br/>&nbsp;&nbsp;Supports Variable Substitutions(XML, JSON) <br/>Click [here](https://aka.ms/azurermwebdeployreadme) for more information.",

Tasks/AzureRmWebAppDeploymentV3/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"author": "Microsoft Corporation",
1818
"version": {
1919
"Major": 3,
20-
"Minor": 178,
20+
"Minor": 179,
2121
"Patch": 0
2222
},
2323
"releaseNotes": "ms-resource:loc.releaseNotes",

0 commit comments

Comments
 (0)