31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
|
|
From 560993168d85ec7c84e9aacba5659aa17b40588c Mon Sep 17 00:00:00 2001
|
||
|
|
From: Maurizio Lombardi <mlombard@redhat.com>
|
||
|
|
Date: Tue, 30 Jan 2024 13:03:08 +0100
|
||
|
|
Subject: [PATCH] Fix mapping the new LUN to the node ACL
|
||
|
|
|
||
|
|
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
|
||
|
|
|
||
|
|
---
|
||
|
|
targetcli/ui_target.py | 5 ++---
|
||
|
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/targetcli/ui_target.py b/targetcli/ui_target.py
|
||
|
|
index 2c46765..56f5419 100644
|
||
|
|
--- a/targetcli/ui_target.py
|
||
|
|
+++ b/targetcli/ui_target.py
|
||
|
|
@@ -1151,9 +1151,8 @@ class UILUNs(UINode):
|
||
|
|
possible_mlun += 1
|
||
|
|
mapped_lun = possible_mlun
|
||
|
|
|
||
|
|
- else:
|
||
|
|
- mlun = MappedLUN(acl, mapped_lun, lun_object, write_protect=False)
|
||
|
|
- self.shell.log.info("Created LUN %d->%d mapping in node ACL %s"
|
||
|
|
+ mlun = MappedLUN(acl, mapped_lun, lun_object, write_protect=False)
|
||
|
|
+ self.shell.log.info("Created LUN %d->%d mapping in node ACL %s"
|
||
|
|
% (mlun.tpg_lun.lun, mlun.mapped_lun, acl.node_wwn))
|
||
|
|
self.parent.refresh()
|
||
|
|
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|