Merge "Fixes uncaught exception on Add Pool when unable to retrieve networks"
This commit is contained in:
commit
e91b920bbc
@ -52,6 +52,7 @@ class AddPoolAction(workflows.Action):
|
|||||||
except:
|
except:
|
||||||
exceptions.handle(request,
|
exceptions.handle(request,
|
||||||
_('Unable to retrieve networks list.'))
|
_('Unable to retrieve networks list.'))
|
||||||
|
networks = []
|
||||||
for n in networks:
|
for n in networks:
|
||||||
for s in n['subnets']:
|
for s in n['subnets']:
|
||||||
subnet_id_choices.append((s.id, s.cidr))
|
subnet_id_choices.append((s.id, s.cidr))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user