From 145ec765250cd492964cac608f9f4995ca2804a8 Mon Sep 17 00:00:00 2001 From: grac3gao Date: Wed, 5 Oct 2022 20:31:47 -0700 Subject: [PATCH] fix bug --- mmv1/third_party/terraform/utils/node_config.go.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),