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
commit e91b920bbc

View File

@ -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))