diff --git a/mmv1/third_party/terraform/services/container/resource_container_node_pool.go.tmpl b/mmv1/third_party/terraform/services/container/resource_container_node_pool.go.tmpl index 4b463e56ab3b..ccda8717798e 100644 --- a/mmv1/third_party/terraform/services/container/resource_container_node_pool.go.tmpl +++ b/mmv1/third_party/terraform/services/container/resource_container_node_pool.go.tmpl @@ -1198,11 +1198,13 @@ func flattenNodePool(d *schema.ResourceData, config *transport_tpg.Config, np *c nodePool["max_pods_per_node"] = np.MaxPodsConstraint.MaxPodsPerNode } - nodePool["management"] = []map[string]interface{}{ - { - "auto_repair": np.Management.AutoRepair, - "auto_upgrade": np.Management.AutoUpgrade, - }, + if np.Management != nil { + nodePool["management"] = []map[string]interface{}{ + { + "auto_repair": np.Management.AutoRepair, + "auto_upgrade": np.Management.AutoUpgrade, + }, + } } if np.UpgradeSettings != nil {