Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit d471e57

Browse files
committed
Merge pull request #509 from jtopjian/jtopjian-bfv-fix
[rfr] Remove imageName and flavorName from Boot From Volume
2 parents 63ee53d + 9d6e6a9 commit d471e57

File tree

1 file changed

+5
-0
lines changed
  • openstack/compute/v2/extensions/bootfromvolume

1 file changed

+5
-0
lines changed

openstack/compute/v2/extensions/bootfromvolume/requests.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ func Create(client *gophercloud.ServiceClient, opts servers.CreateOptsBuilder) s
9999
return res
100100
}
101101

102+
// Delete imageName and flavorName that come from ToServerCreateMap().
103+
// As of Liberty, Boot From Volume is failing if they are passed.
104+
delete(reqBody["server"].(map[string]interface{}), "imageName")
105+
delete(reqBody["server"].(map[string]interface{}), "flavorName")
106+
102107
_, res.Err = client.Post(createURL(client), reqBody, &res.Body, &gophercloud.RequestOpts{
103108
OkCodes: []int{200, 202},
104109
})

0 commit comments

Comments
 (0)