File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 22
22
- New Cmdlets
23
23
- New-AzWebAppCertificate
24
24
- Remove-AzWebAppCertificate
25
-
25
+ * Fix bug that causes Docker Password to be removed from appsettings in ` Set-AzWebApp ` and ` Set-AzWebAppSlot `
26
26
## Version 2.1.1
27
27
* Prevent duplicate access restriction rules
28
28
Original file line number Diff line number Diff line change @@ -234,11 +234,13 @@ public override void ExecuteCmdlet()
234
234
}
235
235
}
236
236
237
- appSettings . Remove ( CmdletHelpers . DockerRegistryServerPassword ) ;
238
-
239
237
if ( ContainerRegistryPassword != null )
240
238
{
241
- appSettings [ CmdletHelpers . DockerRegistryServerPassword ] = ContainerRegistryPassword . ConvertToString ( ) ;
239
+ appSettings . Remove ( CmdletHelpers . DockerRegistryServerPassword ) ;
240
+ if ( ContainerRegistryPassword . ConvertToString ( ) != string . Empty )
241
+ {
242
+ appSettings [ CmdletHelpers . DockerRegistryServerPassword ] = ContainerRegistryPassword . ConvertToString ( ) ;
243
+ }
242
244
}
243
245
244
246
if ( parameters . Contains ( "EnableContainerContinuousDeployment" ) )
Original file line number Diff line number Diff line change @@ -236,14 +236,16 @@ public override void ExecuteCmdlet()
236
236
if ( ContainerRegistryUser != string . Empty )
237
237
{
238
238
appSettings [ CmdletHelpers . DockerRegistryServerUserName ] = ContainerRegistryUser ;
239
- }
239
+ }
240
240
}
241
241
242
- appSettings . Remove ( CmdletHelpers . DockerRegistryServerPassword ) ;
243
-
244
242
if ( ContainerRegistryPassword != null )
245
243
{
246
- appSettings [ CmdletHelpers . DockerRegistryServerPassword ] = ContainerRegistryPassword . ConvertToString ( ) ;
244
+ appSettings . Remove ( CmdletHelpers . DockerRegistryServerPassword ) ;
245
+ if ( ContainerRegistryPassword . ConvertToString ( ) != string . Empty )
246
+ {
247
+ appSettings [ CmdletHelpers . DockerRegistryServerPassword ] = ContainerRegistryPassword . ConvertToString ( ) ;
248
+ }
247
249
}
248
250
249
251
if ( parameters . Contains ( "EnableContainerContinuousDeployment" ) )
You can’t perform that action at this time.
0 commit comments