Skip to content

Commit

Permalink
[ignore] Apply Black again.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmicol authored and lhercot committed May 15, 2024
1 parent 59f6cfd commit 2dd836a
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions plugins/modules/nd_interface_flow_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@
flow_rule_type: physical
flow_rule_status: enabled
nodes:
- node_id: 1
node_name: my_node_1
ports:
- eth1/1
- eth1/2
- node_id: 2
node_name: my_node_2
ports:
- eth1/10
- node_id: 1
node_name: my_node_1
ports:
- eth1/1
- eth1/2
- node_id: 2
node_name: my_node_2
ports:
- eth1/10
subnets:
- 10.10.0.0/24
state: present
Expand Down Expand Up @@ -451,7 +451,10 @@ def main():
nd.existing = [sanitize_dict(flow_rules_config, delete_keys) for flow_rules_config in flow_rules_history]
elif flow_rule_type and not flow_rule:
nd.existing = [
sanitize_dict(flow_rules_config, delete_keys) for flow_rules_config in flow_rules_history if flow_rules_config.get("type", "") == flow_rule_type
sanitize_dict(
flow_rules_config, delete_keys)
for flow_rules_config in flow_rules_history
if flow_rules_config.get("type", "") == flow_rule_type
]

elif state == "absent":
Expand Down

0 comments on commit 2dd836a

Please sign in to comment.