Skip to content

Commit

Permalink
Revert "Revert "azurerm_synapse_spark_pool - set node_count in re…
Browse files Browse the repository at this point in the history
…ad if `auto_scale` is disabled""

This reverts commit 7c37e36.
  • Loading branch information
ms-henglu committed Aug 13, 2024
1 parent a067a73 commit 9d752df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/services/synapse/synapse_spark_pool_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ func resourceSynapseSparkPoolRead(d *pluginsdk.ResourceData, meta interface{}) e
d.Set("min_executors", minExector)
d.Set("max_executors", maxExecutor)

d.Set("node_count", props.NodeCount)
if props.AutoScale == nil || props.AutoScale.Enabled == nil || !*props.AutoScale.Enabled {
d.Set("node_count", props.NodeCount)
}
d.Set("node_size", props.NodeSize)
d.Set("node_size_family", string(props.NodeSizeFamily))
d.Set("session_level_packages_enabled", props.SessionLevelPackagesEnabled)
Expand Down

0 comments on commit 9d752df

Please sign in to comment.