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): #,"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(
LOG.error("no bridge for network %s" % (network_id,))
raise Exception("no bridge for network %s" % (network_id,))
else:"using bridge %s for network %s" % (bridge,network_id))
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