Skip to content

Commit

Permalink
#24242: Preserve public_network_access_enabled during refresh (#24255)
Browse files Browse the repository at this point in the history
Co-authored-by: Harshavardhan Musanalli <[email protected]>
  • Loading branch information
harshavmb and harshavmb authored Dec 18, 2023
1 parent 930a999 commit 185c86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/bot/bot_service_resource_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func (br botBaseResource) readFunc() sdk.ResourceFunc {
metadata.ResourceData.Set("local_authentication_enabled", localAuthEnabled)

publicNetworkAccessEnabled := true
if v := props.PublicNetworkAccess; v != botservice.PublicNetworkAccessDisabled {
if v := props.PublicNetworkAccess; v != botservice.PublicNetworkAccessEnabled {
publicNetworkAccessEnabled = false
}
metadata.ResourceData.Set("public_network_access_enabled", publicNetworkAccessEnabled)
Expand Down

0 comments on commit 185c86d

Please sign in to comment.