summaryrefslogtreecommitdiff
path: root/targetcli
diff options
context:
space:
mode:
authorAndy Grover <andy@groveronline.com>2018-02-20 16:04:41 -0800
committerGitHub <noreply@github.com>2018-02-20 16:04:41 -0800
commitdf5e4de7fddd182f5655e037124bc758d6af64ff (patch)
tree2ab028bc9d05cf896e41c004b152c45e24b8b98b /targetcli
parentc9b3a72df64a0fd9a7f48cb01af25d1e4e5bd7cb (diff)
parent598f988cb90e318a62a164cadb2045f4e6778bda (diff)
downloadtargetcli-df5e4de7fddd182f5655e037124bc758d6af64ff.tar.gz
Merge pull request #103 from pzakha/lun-limit
MappedLuns and Luns max number is not the same anymore
Diffstat (limited to 'targetcli')
-rw-r--r--targetcli/ui_target.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/targetcli/ui_target.py b/targetcli/ui_target.py
index 87c5a2a..6895b38 100644
--- a/targetcli/ui_target.py
+++ b/targetcli/ui_target.py
@@ -1141,7 +1141,7 @@ class UILUNs(UINode):
existing_mluns = [mlun.mapped_lun for mlun in acl.mapped_luns]
if mapped_lun in existing_mluns:
mapped_lun = None
- for possible_mlun in six.moves.range(LUN.MAX_LUN):
+ for possible_mlun in six.moves.range(MappedLUN.MAX_LUN):
if possible_mlun not in existing_mluns:
mapped_lun = possible_mlun
break