Skip to content

Commit

Permalink
add AvailabilityZone param to VolumeCreate opts
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-mey committed May 18, 2021
1 parent ceecba7 commit a63b105
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/openstack/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ func (c *GenericClient) VolumeCreate(d *Driver) (string, error) {
if d.VolumeType != "" {
opts.VolumeType = d.VolumeType
}
if d.AvailabilityZone != "" {
opts.AvailabilityZone = d.AvailabilityZone
}
vol, err := volumes.Create(c.BlockStorage, opts).Extract()
if err != nil {
return "", err
Expand Down

0 comments on commit a63b105

Please sign in to comment.