From d031dc8679c8cfcf7557e6ceb95836f635d6efd5 Mon Sep 17 00:00:00 2001 From: Mark McClain <mark.mcclain@dreamhost.com> Date: Wed, 12 Jun 2013 12:54:44 -0400 Subject: [PATCH] fix pep8 errors that slipped through --- akanda/quantum/plugins/decorators.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/akanda/quantum/plugins/decorators.py b/akanda/quantum/plugins/decorators.py index 8fb02f2..f632356 100644 --- a/akanda/quantum/plugins/decorators.py +++ b/akanda/quantum/plugins/decorators.py @@ -222,14 +222,20 @@ def _update_internal_gateway_port_ip(context, router_id, subnet): break else: try: - plugin._check_for_dup_router_subnet(context, routerport.router, subnet['network_id'], subnet) - except: - LOG.info( - ('Subnet %(id)s will not be auto added to router because %(gateway_ip)s is already in use by ' - 'another attached network attached to this router.'), + plugin._check_for_dup_router_subnet( + context, + routerport.router, + subnet['network_id'], subnet ) - return True # nothing to add + except: + LOG.info( + ('Subnet %(id)s will not be auto added to router because ' + '%(gateway_ip)s is already in use by another attached ' + 'network attached to this router.'), + subnet + ) + return True # nothing to add fixed_ips.append( {'subnet_id': subnet['id'], 'ip_address': subnet['gateway_ip']} )