provider/openstack: gophercloud migration: Use 'value_specs' from constructed body, and range over asserted type

This commit is contained in:
Gavin Williams 2016-10-04 17:35:54 +01:00 committed by Joe Topjian
parent 1eab2121ad
commit 796e076313

View File

@ -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")