Commit d430e835 authored by Yann KAISER's avatar Yann KAISER

Changed the VNetworkresource address_rangehandling (List instead of Set)

parent 6fba6e78
......@@ -63,7 +63,7 @@ func resourceVNetwork() *schema.Resource {
Required: true,
},
"address_range": &schema.Schema{
Type: schema.TypeSet,
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
......@@ -127,8 +127,8 @@ func resourceVNetworkCreate(d *schema.ResourceData, m interface{}) error {
return err
}
addressRanges := d.Get("address_range").(*schema.Set)
for _, ar := range addressRanges.List() {
addressRanges := d.Get("address_range").([]interface{})
for _, ar := range addressRanges {
var arMap = ar.(map[string]interface{})
var ip, mac string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment