Skip to content

Commit

Permalink
Adapt to path changes in Gophercloud v2
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreprinetti committed May 27, 2024
1 parent f79c3b8 commit 355fdce
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
fail-fast: false
matrix:
go-version:
- "1.21"
- "1.22"

env:
GO111MODULE: "on"
Expand Down
8 changes: 3 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
module github.com/gophercloud/utils/v2

go 1.22

require (
github.com/gophercloud/gophercloud/v2 v2.0.0-beta.2
github.com/gophercloud/gophercloud/v2 v2.0.0-rc.1
github.com/hashicorp/go-uuid v1.0.3
github.com/mitchellh/go-homedir v1.1.0
golang.org/x/sys v0.20.0
golang.org/x/text v0.15.0
gopkg.in/yaml.v3 v3.0.1
)

go 1.21.6

toolchain go1.21.7
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/gophercloud/gophercloud/v2 v2.0.0-beta.2 h1:JWv6L7eg3+aIS57n11YlVvtn1pVCKpVlMo24ANj/OVc=
github.com/gophercloud/gophercloud/v2 v2.0.0-beta.2/go.mod h1:Sy5GHwY4iazyaRf94rzL/VxJToVWn8WnIH+1cXqoAks=
github.com/gophercloud/gophercloud/v2 v2.0.0-rc.1 h1:B0J9VVGlNuMF/743KMVFScDB8M2Bd5N1KlsEZykSBlc=
github.com/gophercloud/gophercloud/v2 v2.0.0-rc.1/go.mod h1:cwPW9cbJmfBt1c7o/yzXuNjwonhWA+F9Zw8LNQzd3Zk=
github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8=
github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
Expand Down
44 changes: 0 additions & 44 deletions openstack/blockstorage/v1/snapshots/utils.go

This file was deleted.

44 changes: 0 additions & 44 deletions openstack/blockstorage/v1/volumes/utils.go

This file was deleted.

2 changes: 1 addition & 1 deletion openstack/blockstorage/v3/availabilityzones/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/gophercloud/gophercloud/v2"
"github.com/gophercloud/gophercloud/v2/openstack/blockstorage/extensions/availabilityzones"
"github.com/gophercloud/gophercloud/v2/openstack/blockstorage/v3/availabilityzones"
)

// ListAvailableAvailabilityZones is a convenience function that return a slice of available Availability Zones.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/gophercloud/gophercloud/v2"
"github.com/gophercloud/gophercloud/v2/openstack/blockstorage/extensions/backups"
"github.com/gophercloud/gophercloud/v2/openstack/blockstorage/v3/backups"
)

// IDFromName is a convenience function that returns a backup's ID given its
Expand Down
2 changes: 1 addition & 1 deletion openstack/compute/v2/availabilityzones/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/gophercloud/gophercloud/v2"
"github.com/gophercloud/gophercloud/v2/openstack/compute/v2/extensions/availabilityzones"
"github.com/gophercloud/gophercloud/v2/openstack/compute/v2/availabilityzones"
)

// ListAvailableAvailabilityZones is a convenience function that return a slice of available Availability Zones.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/gophercloud/gophercloud/v2"
"github.com/gophercloud/gophercloud/v2/openstack/imageservice/v2/images"
"github.com/gophercloud/gophercloud/v2/openstack/image/v2/images"
)

// IDFromName is a convenience function that returns an image's ID given its
Expand Down

0 comments on commit 355fdce

Please sign in to comment.