mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-26 09:39:36 -05:00
Fix crash
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
parent
7c01a67dc6
commit
c1524bed34
1 changed files with 5 additions and 1 deletions
|
|
@ -221,7 +221,11 @@ func flattenIpamConfigSpec(in []network.IPAMConfig) *schema.Set { // []interface
|
|||
m["gateway"] = v.Gateway
|
||||
}
|
||||
if len(v.AuxAddress) > 0 {
|
||||
m["aux_address"] = v.AuxAddress
|
||||
aux := make(map[string]interface{}, len(v.AuxAddress))
|
||||
for ka, va := range v.AuxAddress {
|
||||
aux[ka] = va
|
||||
}
|
||||
m["aux_address"] = aux
|
||||
}
|
||||
out[i] = m
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue