Skip to content

Commit 840bd9f

Browse files
committed
remove swag from direct dependencies
1 parent 95b342d commit 840bd9f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module github.com/cobaltcore-dev/openstack-hypervisor-operator
66
go 1.24.4
77

88
require (
9-
github.com/go-openapi/swag v0.23.1
109
github.com/gophercloud/gophercloud/v2 v2.7.0
1110
github.com/gophercloud/utils/v2 v2.0.0-20250711132455-9770683b100a
1211
github.com/onsi/ginkgo/v2 v2.25.3
@@ -18,6 +17,7 @@ require (
1817
)
1918

2019
require (
20+
github.com/go-openapi/swag v0.23.1 // indirect
2121
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
2222
go.yaml.in/yaml/v2 v2.4.2 // indirect
2323
go.yaml.in/yaml/v3 v3.0.4 // indirect

internal/controller/eviction_controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
"strings"
2727
"time"
2828

29-
"github.com/go-openapi/swag"
3029
"github.com/gophercloud/gophercloud/v2"
3130
"github.com/gophercloud/gophercloud/v2/openstack/compute/v2/hypervisors"
3231
"github.com/gophercloud/gophercloud/v2/openstack/compute/v2/servers"
@@ -480,7 +479,7 @@ func (r *EvictionReconciler) liveMigrate(ctx context.Context, uuid string, evict
480479
log := logger.FromContext(ctx)
481480

482481
liveMigrateOpts := servers.LiveMigrateOpts{
483-
BlockMigration: swag.Bool(false),
482+
BlockMigration: &[]bool{false}[0],
484483
}
485484

486485
res := servers.LiveMigrate(ctx, r.computeClient, uuid, liveMigrateOpts)

0 commit comments

Comments
 (0)