From 2f006df54ff0539af23a8423c676dbaf3665938d Mon Sep 17 00:00:00 2001 From: ned1313 Date: Tue, 17 Dec 2024 15:20:34 -0500 Subject: [PATCH] Fix prop name --- internal/services/appservice/static_web_app_data_source.go | 2 +- internal/services/appservice/static_web_app_resource.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/services/appservice/static_web_app_data_source.go b/internal/services/appservice/static_web_app_data_source.go index b74743fc83ae..15aa529dcb7e 100644 --- a/internal/services/appservice/static_web_app_data_source.go +++ b/internal/services/appservice/static_web_app_data_source.go @@ -169,7 +169,7 @@ func (s StaticWebAppDataSource) Read() sdk.ResourceFunc { state.ConfigFileChanges = pointer.From(props.AllowConfigFileUpdates) state.DefaultHostName = pointer.From(props.DefaultHostname) state.PreviewEnvironments = pointer.From(props.StagingEnvironmentPolicy) == staticsites.StagingEnvironmentPolicyEnabled - state.RepositoryUrl = pointer.From(props.RepositoryUrl) + state.RepositoryUrl = pointer.From(props.RepositoryURL) state.RepositoryBranch = pointer.From(props.Branch) state.PublicNetworkAccess = !strings.EqualFold(pointer.From(props.PublicNetworkAccess), helpers.PublicNetworkAccessDisabled) } diff --git a/internal/services/appservice/static_web_app_resource.go b/internal/services/appservice/static_web_app_resource.go index c36fce901ef6..fddfa90c7b6a 100644 --- a/internal/services/appservice/static_web_app_resource.go +++ b/internal/services/appservice/static_web_app_resource.go @@ -225,7 +225,7 @@ func (r StaticWebAppResource) Create() sdk.ResourceFunc { // Check if repository URL, branch, or token are set if model.RepositoryUrl != "" || model.RepositoryBranch != "" || model.RepositoryToken != "" { props.Branch = pointer.To(model.RepositoryBranch) - props.RepositoryUrl = pointer.To(model.RepositoryUrl) + props.RepositoryURL = pointer.To(model.RepositoryUrl) props.RepositoryToken = pointer.To(model.RepositoryToken) } @@ -314,7 +314,7 @@ func (r StaticWebAppResource) Read() sdk.ResourceFunc { state.DefaultHostName = pointer.From(props.DefaultHostname) state.PreviewEnvironments = pointer.From(props.StagingEnvironmentPolicy) == staticsites.StagingEnvironmentPolicyEnabled - state.RepositoryUrl = pointer.From(props.RepositoryUrl) + state.RepositoryUrl = pointer.From(props.RepositoryURL) state.RepositoryBranch = pointer.From(props.Branch) // Token isn't returned in the response, so we need to grab it from the config @@ -499,7 +499,7 @@ func (r StaticWebAppResource) Update() sdk.ResourceFunc { } if metadata.ResourceData.HasChanges("repository_url", "repository_branch", "repository_token") { - model.Properties.RepositoryUrl = pointer.To(config.RepositoryUrl) + model.Properties.RepositoryURL = pointer.To(config.RepositoryUrl) model.Properties.Branch = pointer.To(config.RepositoryBranch) model.Properties.RepositoryToken = pointer.To(config.RepositoryToken) }