From f0e169407c2d4c8871fad5d6bed498ad0634f85e Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Tue, 13 Aug 2019 19:01:17 +0800 Subject: [PATCH] Fix data_volumes type of cce node --- huaweicloud/resource_huaweicloud_cce_node_v3.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/huaweicloud/resource_huaweicloud_cce_node_v3.go b/huaweicloud/resource_huaweicloud_cce_node_v3.go index 39a78ffb9e..145986ea7a 100644 --- a/huaweicloud/resource_huaweicloud_cce_node_v3.go +++ b/huaweicloud/resource_huaweicloud_cce_node_v3.go @@ -94,7 +94,7 @@ func resourceCCENodeV3() *schema.Resource { }}, }, "data_volumes": { - Type: schema.TypeSet, + Type: schema.TypeList, Required: true, ForceNew: true, Elem: &schema.Resource{ @@ -220,7 +220,7 @@ func resourceCCENodeAnnotationsV2(d *schema.ResourceData) map[string]string { return m } func resourceCCEDataVolume(d *schema.ResourceData) []nodes.VolumeSpec { - volumeRaw := d.Get("data_volumes").(*schema.Set).List() + volumeRaw := d.Get("data_volumes").([]interface{}) volumes := make([]nodes.VolumeSpec, len(volumeRaw)) for i, raw := range volumeRaw { rawMap := raw.(map[string]interface{})