Merge "Fixes uncaught exception on Add Pool when unable to retrieve networks"

This commit is contained in:
Jenkins
2013-03-12 21:10:01 +00:00
committed by Gerrit Code Review

View File

@ -52,6 +52,7 @@ class AddPoolAction(workflows.Action):
except:
exceptions.handle(request,
_('Unable to retrieve networks list.'))
networks = []
for n in networks:
for s in n['subnets']:
subnet_id_choices.append((s.id, s.cidr))