Commit f5a72aca authored by David Johnson's avatar David Johnson

Use a real Exception, instead of double-faulting.

parent adca97f0
Pipeline #1238 skipped
......@@ -46,9 +46,8 @@ class CapnetLibvirtVIFDriver(nova.virt.libvirt.vif.LibvirtGenericVIFDriver): #,
LOG.info("vif: %s" % (str(vif)))
bridge = vif['network']['bridge']
if not bridge:
LOG.error("no bridge %s for network %s" % (bridge,network_id))
raise exception.NetworkMissingPhysicalNetwork(
network_uuid=vif['network']['id'])
LOG.error("no bridge for network %s" % (network_id,))
raise Exception("no bridge for network %s" % (network_id,))
else:
LOG.info("using bridge %s for network %s" % (bridge,network_id))
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment