Skip to content

Commit 2af673d

Browse files
committed
Default to blockstorage v3 API
The blockstorage v2 API [1] was deprecated in Pike and removed in Xena. We should make v3 the default API version when none is explicitly specified. [1] https://docs.openstack.org/api-ref/block-storage/v2/
1 parent d0ab9f2 commit 2af673d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstack/clientconfig/requests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ func NewServiceClient(service string, opts *ClientOpts) (*gophercloud.ServiceCli
916916
case "sharev2":
917917
return openstack.NewSharedFileSystemV2(pClient, eo)
918918
case "volume":
919-
volumeVersion := "2"
919+
volumeVersion := "3"
920920
if v := cloud.VolumeAPIVersion; v != "" {
921921
volumeVersion = v
922922
}

0 commit comments

Comments
 (0)