1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix PEP 8 issues.

This commit is contained in:
Matt Clay 2017-08-16 14:32:11 -07:00
parent 46b80bc18e
commit 15be0e91e8

View file

@ -186,11 +186,13 @@ ROUTER_INTERFACE_OWNERS = set([
'network:ha_router_replicated_interface'
])
def _router_internal_interfaces(cloud, router):
for port in cloud.list_router_interfaces(router, 'internal'):
if port['device_owner'] in ROUTER_INTERFACE_OWNERS:
yield port
def _needs_update(cloud, module, router, network, internal_subnet_ids):
"""Decide if the given router needs an update.
"""