From 58cf209f2cbe15cacce5f61fbe32b221d2de2ba2 Mon Sep 17 00:00:00 2001 From: "an.makarov" Date: Fri, 24 Jan 2025 19:58:57 +0300 Subject: [PATCH] Update scanCmd in devices for ScanTargetLUN --- utils/devices/devices.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/devices/devices.go b/utils/devices/devices.go index 640bf9379..ce6f5ecbd 100644 --- a/utils/devices/devices.go +++ b/utils/devices/devices.go @@ -823,9 +823,9 @@ func (c *Client) ScanTargetLUN(ctx context.Context, lunID int, hosts []int) erro ) // By default, scan for all the LUNs - scanCmd := "0 0 -" + scanCmd := "- - -" if lunID >= 0 { - scanCmd = fmt.Sprintf("0 0 %d", lunID) + scanCmd = fmt.Sprintf("- - %d", lunID) } c.ListAllDevices(ctx)