Skip to content

Commit

Permalink
Fix mapping the new LUN to the node ACL
Browse files Browse the repository at this point in the history
Signed-off-by: Maurizio Lombardi <[email protected]>
  • Loading branch information
maurizio-lombardi committed Jan 30, 2024
1 parent 343eabc commit 5609931
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions targetcli/ui_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,10 +1151,9 @@ def ui_command_create(self, storage_object, lun=None,
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.tpg_lun.lun, mlun.mapped_lun, acl.node_wwn))
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()

return self.new_node(ui_lun)
Expand Down

0 comments on commit 5609931

Please sign in to comment.