diff options
author | Pavel Zakharov <pavel.zakharov@delphix.com> | 2018-02-20 17:53:20 -0500 |
---|---|---|
committer | Pavel Zakharov <pavel.zakharov@delphix.com> | 2018-02-20 17:53:20 -0500 |
commit | 598f988cb90e318a62a164cadb2045f4e6778bda (patch) | |
tree | 437d653d3553d0ba40dbbc35772b7f0895561c8e /targetcli | |
parent | 4bdcf113375f97311679994653bc01c65a0fcdff (diff) | |
download | targetcli-598f988cb90e318a62a164cadb2045f4e6778bda.tar.gz |
MappedLuns and Luns max number is not the same anymore
Diffstat (limited to 'targetcli')
-rw-r--r-- | targetcli/ui_target.py | 2 |
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 |