fix pep8 on os_security_group_rule.py (#35924)

This commit is contained in:
Dave Buckley 2019-02-18 19:14:41 +00:00 committed by ansibot
parent d1d4f4bd27
commit 367c62c9b5

View file

@ -239,16 +239,16 @@ def _find_matching_rule(module, secgroup, remotegroup):
remote_group_id = remotegroup['id'] remote_group_id = remotegroup['id']
for rule in secgroup['security_group_rules']: for rule in secgroup['security_group_rules']:
if (protocol == rule['protocol'] if (protocol == rule['protocol'] and
and remote_ip_prefix == rule['remote_ip_prefix'] remote_ip_prefix == rule['remote_ip_prefix'] and
and ethertype == rule['ethertype'] ethertype == rule['ethertype'] and
and direction == rule['direction'] direction == rule['direction'] and
and remote_group_id == rule['remote_group_id'] remote_group_id == rule['remote_group_id'] and
and _ports_match(protocol, _ports_match(protocol,
module.params['port_range_min'], module.params['port_range_min'],
module.params['port_range_max'], module.params['port_range_max'],
rule['port_range_min'], rule['port_range_min'],
rule['port_range_max'])): rule['port_range_max'])):
return rule return rule
return None return None