From 185c86d9d3d12183d4eaeffe5e713e897e52d75d Mon Sep 17 00:00:00 2001 From: Harshavardhan Musanalli Date: Mon, 18 Dec 2023 13:30:39 +0100 Subject: [PATCH] #24242: Preserve public_network_access_enabled during refresh (#24255) Co-authored-by: Harshavardhan Musanalli --- internal/services/bot/bot_service_resource_base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/bot/bot_service_resource_base.go b/internal/services/bot/bot_service_resource_base.go index bf2980f06f68..e5bf53aca3c5 100644 --- a/internal/services/bot/bot_service_resource_base.go +++ b/internal/services/bot/bot_service_resource_base.go @@ -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)