mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
provider/openstack: gophercloud migration: Use 'value_specs' from constructed body, and range over asserted type
This commit is contained in:
parent
1eab2121ad
commit
796e076313
@ -26,8 +26,8 @@ func BuildRequest(opts interface{}, parent string) (map[string]interface{}, erro
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if opts.ValueSpecs != nil {
|
||||
for k, v := range opts.ValueSpecs {
|
||||
if b["value_specs"] != nil {
|
||||
for k, v := range b["value_specs"].(map[string]interface{}) {
|
||||
b[k] = v
|
||||
}
|
||||
delete(b, "value_specs")
|
||||
|
Loading…
Reference in New Issue
Block a user