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 committed Jun 4, 2024
1 parent 7103825 commit f02f256
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,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 f02f256

Please sign in to comment.