diff --git a/volcengine/vke/default_node_pool/common_volcengine_vke_default_node_pool.go b/volcengine/vke/default_node_pool/common_volcengine_vke_default_node_pool.go index 2556563e..b8b5dc5a 100644 --- a/volcengine/vke/default_node_pool/common_volcengine_vke_default_node_pool.go +++ b/volcengine/vke/default_node_pool/common_volcengine_vke_default_node_pool.go @@ -20,7 +20,7 @@ func defaultNodePoolNodeHash(v interface{}) int { buf.WriteString(fmt.Sprintf("%s-", strings.ToLower(strconv.FormatBool(m["additional_container_storage_enabled"].(bool))))) buf.WriteString(fmt.Sprintf("%s-", strings.ToLower(m["image_id"].(string)))) if m["additional_container_storage_enabled"].(bool) { - buf.WriteString(fmt.Sprintf("%s", strings.ToLower(m["container_storage_path"].(string)))) + buf.WriteString(fmt.Sprintf("%s-", strings.ToLower(m["container_storage_path"].(string)))) } return hashcode.String(buf.String()) } @@ -28,10 +28,11 @@ func defaultNodePoolNodeHash(v interface{}) int { func defaultNodePoolDiffSuppress() schema.SchemaDiffSuppressFunc { return func(k, old, new string, d *schema.ResourceData) bool { key := strings.ReplaceAll(k, "container_storage_path", "") + "additional_container_storage_enabled" - if d.Get(key) == false { - return true - } - return false + return d.Get(key) == false + //if d.Get(key) == false { + // return true + //} + //return false } }