]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove useless return
authorCedric Brandily <zzelle@gmail.com>
Tue, 11 Nov 2014 16:54:31 +0000 (17:54 +0100)
committerCedric Brandily <zzelle@gmail.com>
Tue, 11 Nov 2014 16:54:31 +0000 (17:54 +0100)
This change removes a never executed return after a raise.

Change-Id: I6e6cc1580469f6cc676492c8c27b3e45dd444031

neutron/services/firewall/agents/varmour/varmour_router.py

index c24d8e7b2a711e0ea257cbe22f5cc4d740e5bfc9..6f8d09bf9d94dd372ece3347cd1747b3f1faef98 100755 (executable)
@@ -97,7 +97,6 @@ class vArmourL3NATAgent(l3_agent.L3NATAgent,
         ips = port['fixed_ips']
         if not ips:
             raise Exception(_("Router port %s has no IP address") % port['id'])
-            return
         if len(ips) > 1:
             LOG.warn(_("Ignoring multiple IPs on router port %s"), port['id'])
         prefixlen = netaddr.IPNetwork(port['subnet']['cidr']).prefixlen