Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ims
terraform-provider-one
Commits
d430e835
Commit
d430e835
authored
Dec 04, 2017
by
Yann KAISER
Browse files
Changed the VNetworkresource address_rangehandling (List instead of Set)
parent
6fba6e78
Changes
1
Show whitespace changes
Inline
Side-by-side
one/resource_vnetwork.go
View file @
d430e835
...
...
@@ -63,7 +63,7 @@ func resourceVNetwork() *schema.Resource {
Required
:
true
,
},
"address_range"
:
&
schema
.
Schema
{
Type
:
schema
.
Type
Se
t
,
Type
:
schema
.
Type
Lis
t
,
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment