Skip to content

Commit

Permalink
Fix data_volumes type of cce node
Browse files Browse the repository at this point in the history
  • Loading branch information
niuzhenguo committed Aug 13, 2019
1 parent 3c57bbb commit f0e1694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions huaweicloud/resource_huaweicloud_cce_node_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func resourceCCENodeV3() *schema.Resource {
}},
},
"data_volumes": {
Type: schema.TypeSet,
Type: schema.TypeList,
Required: true,
ForceNew: true,
Elem: &schema.Resource{
Expand Down Expand Up @@ -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{})
Expand Down

0 comments on commit f0e1694

Please sign in to comment.