Skip to content

Commit

Permalink
Merge pull request #129 from sensorberg/master
Browse files Browse the repository at this point in the history
add AvailabilityZone param to VolumeCreate opts
  • Loading branch information
luthermonson authored May 19, 2021
2 parents 72ed3aa + a63b105 commit e7992f7
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 e7992f7

Please sign in to comment.