Skip to content

Commit

Permalink
Fix validation error for legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
oWretch authored and jackofallops committed Dec 11, 2024
1 parent f9bb524 commit 6a93346
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ func (r ContainerAppEnvironmentResource) CustomizeDiff() sdk.ResourceFunc {
return fmt.Errorf("`log_analytics_workspace_id` must be set when `logs_destination` is set to `log-analytics`")
}

if env.LogAnalyticsWorkspaceId != "" && env.LogsDestination != "log-analytics" {
if env.LogAnalyticsWorkspaceId != "" && env.LogsDestination != "" && env.LogsDestination != "log-analytics" {
return fmt.Errorf("`log_analytics_workspace_id` can only be set when `logs_destination` is set to `log-analytics`")
}

Expand Down

0 comments on commit 6a93346

Please sign in to comment.