diff --git a/go.mod b/go.mod index c71ab8d53d..2d7afedac9 100644 --- a/go.mod +++ b/go.mod @@ -64,7 +64,7 @@ require ( github.com/longhorn/go-iscsi-helper v0.0.0-20240727052644-d2442a50e906 github.com/longhorn/go-spdk-helper v0.0.0-20240727080828-a55a2982815a github.com/longhorn/longhorn-engine v1.7.0-rc1 - github.com/longhorn/longhorn-instance-manager v1.7.0-dev.0.20240727125733-d96adf75e2eb + github.com/longhorn/longhorn-instance-manager v1.7.0-dev.0.20240731053924-6cc08179c5cb github.com/longhorn/longhorn-share-manager v1.7.0-rc1 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.18.0 diff --git a/go.sum b/go.sum index f4461bdae1..1d73bdf264 100644 --- a/go.sum +++ b/go.sum @@ -1232,8 +1232,8 @@ github.com/longhorn/go-spdk-helper v0.0.0-20240727080828-a55a2982815a h1:x54NTKw github.com/longhorn/go-spdk-helper v0.0.0-20240727080828-a55a2982815a/go.mod h1:sD6aVynQSbPnYyJ77NLiYbWNI5zyzxcVzIEnXFcKCww= github.com/longhorn/longhorn-engine v1.7.0-rc1 h1:kQ4BwCvBemWsQvVnLdRsbiCXR3zmQBMA1J9Ezysh2q0= github.com/longhorn/longhorn-engine v1.7.0-rc1/go.mod h1:u0TZ1221YusDYA+ExdVLjLid1Ps6JuJXgh9185l5D9Y= -github.com/longhorn/longhorn-instance-manager v1.7.0-dev.0.20240727125733-d96adf75e2eb h1:JyVpFX7jlSOIrGvEoNulPhFtItVipMgC0sIaYUq/4rA= -github.com/longhorn/longhorn-instance-manager v1.7.0-dev.0.20240727125733-d96adf75e2eb/go.mod h1:+QzxQdUohZCaIXLdzlr/wQXmp1RO2wnLBC+F4cCtbG0= +github.com/longhorn/longhorn-instance-manager v1.7.0-dev.0.20240731053924-6cc08179c5cb h1:A98gAFy2sR5Nf2KZ4+sVsNRvFUBidK8TpyJ+mDUi5AQ= +github.com/longhorn/longhorn-instance-manager v1.7.0-dev.0.20240731053924-6cc08179c5cb/go.mod h1:g0R2rLXvf0Mi6rHq8eNA/ESE7Ykm9+EUNSbPxoz9GmA= github.com/longhorn/longhorn-share-manager v1.7.0-rc1 h1:LsSkSajhG8tCfORKKfwK+8XHVrT/8rI9DRWb7fuoVls= github.com/longhorn/longhorn-share-manager v1.7.0-rc1/go.mod h1:R6+NscPU4lAV5ueO7//lBCAO3en0aDbZi5KkkOSUJvk= github.com/longhorn/types v0.0.0-20240725040629-473d671316c4 h1:L2g0sIJ2fXt4BSFRYNnF6ObtKryCUFm9qLcCXHWssCk= diff --git a/vendor/github.com/longhorn/longhorn-instance-manager/pkg/client/disk.go b/vendor/github.com/longhorn/longhorn-instance-manager/pkg/client/disk.go index 5068f0cda7..110a7a4eda 100644 --- a/vendor/github.com/longhorn/longhorn-instance-manager/pkg/client/disk.go +++ b/vendor/github.com/longhorn/longhorn-instance-manager/pkg/client/disk.go @@ -170,8 +170,8 @@ func (c *DiskServiceClient) DiskGet(diskType, diskName, diskPath, diskDriver str // DiskDelete deletes the disk with the given name, disk name, disk UUID, disk path and disk driver. func (c *DiskServiceClient) DiskDelete(diskType, diskName, diskUUID, diskPath, diskDriver string) error { - if diskName == "" || diskUUID == "" { - return fmt.Errorf("failed to delete disk: missing required parameters") + if diskName == "" { + return fmt.Errorf("failed to delete disk: missing required diskName") } client := c.getDiskServiceClient() diff --git a/vendor/modules.txt b/vendor/modules.txt index bc45d42d5a..2ab2324d8c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -269,7 +269,7 @@ github.com/longhorn/longhorn-engine/pkg/meta github.com/longhorn/longhorn-engine/pkg/replica/client github.com/longhorn/longhorn-engine/pkg/types github.com/longhorn/longhorn-engine/pkg/util -# github.com/longhorn/longhorn-instance-manager v1.7.0-dev.0.20240727125733-d96adf75e2eb +# github.com/longhorn/longhorn-instance-manager v1.7.0-dev.0.20240731053924-6cc08179c5cb ## explicit; go 1.22.2 github.com/longhorn/longhorn-instance-manager/pkg/api github.com/longhorn/longhorn-instance-manager/pkg/client