diff --git a/mmv1/third_party/terraform/utils/node_config.go.erb b/mmv1/third_party/terraform/utils/node_config.go.erb index 09e558b1fba1..953a5ae652d1 100644 --- a/mmv1/third_party/terraform/utils/node_config.go.erb +++ b/mmv1/third_party/terraform/utils/node_config.go.erb @@ -521,7 +521,7 @@ func expandNodeConfig(v interface{}) *container.NodeConfig { GpuPartitionSize: data["gpu_partition_size"].(string), } - if v, ok := data["gpu_sharing_config"]; ok & len(v.([]interface{})) > 0 { + if v, ok := data["gpu_sharing_config"]; ok && len(v.([]interface{})) > 0 { gpuSharingConfig := data["gpu_sharing_config"].([]interface{})[0].(map[string]interface{}) guestAcceleratorConfig.GpuSharingConfig = &container.GPUSharingConfig{ GpuSharingStrategy: gpuSharingConfig["gpu_sharing_strategy"].(string),