Merge "Fix "create failed" bug in add DHCP agent form"

This commit is contained in:
Jenkins 2015-09-16 12:29:25 +00:00 committed by Gerrit Code Review
commit eedcdb4d50

View File

@ -54,7 +54,7 @@ class AddView(forms.ModalFormView):
try: try:
network = api.neutron.network_get(self.request, network_id) network = api.neutron.network_get(self.request, network_id)
initial.update({"network_id": network_id, initial.update({"network_id": network_id,
"network_name": network.name, "network_name": network.name_or_id,
"agents": agents}) "agents": agents})
return initial return initial
except Exception: except Exception: