diff options
| author | Andy Grover <andy@groveronline.com> | 2018-02-20 16:04:41 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-20 16:04:41 -0800 |
| commit | df5e4de7fddd182f5655e037124bc758d6af64ff (patch) | |
| tree | 2ab028bc9d05cf896e41c004b152c45e24b8b98b /targetcli | |
| parent | c9b3a72df64a0fd9a7f48cb01af25d1e4e5bd7cb (diff) | |
| parent | 598f988cb90e318a62a164cadb2045f4e6778bda (diff) | |
| download | targetcli-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.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 |
