Fix off by one error in subnetpool choices logic
Change-Id: I9882300f131e73157c5ada35822d12edbbd49fb1 Closes-Bug: 1491321
This commit is contained in:
parent
e6e9e9f493
commit
7c9f283f89
@ -222,7 +222,7 @@ class CreateSubnetInfoAction(workflows.Action):
|
|||||||
self.hide_subnetpool_choices()
|
self.hide_subnetpool_choices()
|
||||||
msg = _('Unable to initialize subnetpools')
|
msg = _('Unable to initialize subnetpools')
|
||||||
exceptions.handle(request, msg)
|
exceptions.handle(request, msg)
|
||||||
if len(self.fields['subnetpool'].choices):
|
if len(self.fields['subnetpool'].choices) > 1:
|
||||||
# Pre-populate prefixlen choices to satisfy Django
|
# Pre-populate prefixlen choices to satisfy Django
|
||||||
# ChoiceField Validation. This is overridden w/data from
|
# ChoiceField Validation. This is overridden w/data from
|
||||||
# subnetpool on select.
|
# subnetpool on select.
|
||||||
|
Loading…
Reference in New Issue
Block a user