mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix pep8 on os_security_group_rule.py (#35924)
This commit is contained in:
parent
d1d4f4bd27
commit
367c62c9b5
1 changed files with 10 additions and 10 deletions
|
@ -239,16 +239,16 @@ def _find_matching_rule(module, secgroup, remotegroup):
|
|||
remote_group_id = remotegroup['id']
|
||||
|
||||
for rule in secgroup['security_group_rules']:
|
||||
if (protocol == rule['protocol']
|
||||
and remote_ip_prefix == rule['remote_ip_prefix']
|
||||
and ethertype == rule['ethertype']
|
||||
and direction == rule['direction']
|
||||
and remote_group_id == rule['remote_group_id']
|
||||
and _ports_match(protocol,
|
||||
module.params['port_range_min'],
|
||||
module.params['port_range_max'],
|
||||
rule['port_range_min'],
|
||||
rule['port_range_max'])):
|
||||
if (protocol == rule['protocol'] and
|
||||
remote_ip_prefix == rule['remote_ip_prefix'] and
|
||||
ethertype == rule['ethertype'] and
|
||||
direction == rule['direction'] and
|
||||
remote_group_id == rule['remote_group_id'] and
|
||||
_ports_match(protocol,
|
||||
module.params['port_range_min'],
|
||||
module.params['port_range_max'],
|
||||
rule['port_range_min'],
|
||||
rule['port_range_max'])):
|
||||
return rule
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in a new issue