Skip to content

Commit

Permalink
fix check for upstream setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofallops committed Feb 18, 2021
1 parent 764bbe4 commit 5b1ba78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func resourceArmSignalRServiceCreate(d *schema.ResourceData, meta interface{}) e
expandedFeatures := expandSignalRFeatures(featureFlags)

// Upstream configurations are only allowed when the SignalR service is in `Serverless` mode
if upstreamSettings != nil && !signalRIsInServerlessMode(expandedFeatures) {
if len(upstreamSettings) > 0 && !signalRIsInServerlessMode(expandedFeatures) {
return fmt.Errorf("Upstream configurations are only allowed when the SignalR Service is in `Serverless` mode")
}

Expand Down

0 comments on commit 5b1ba78

Please sign in to comment.