From 2dd836acd9c4ae5135e1c4cb7fc192faf86ef1c4 Mon Sep 17 00:00:00 2001 From: Gaspard Micol Date: Wed, 24 Apr 2024 12:03:25 -0400 Subject: [PATCH] [ignore] Apply Black again. --- plugins/modules/nd_interface_flow_rules.py | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/plugins/modules/nd_interface_flow_rules.py b/plugins/modules/nd_interface_flow_rules.py index 07628a8..b54f9ea 100644 --- a/plugins/modules/nd_interface_flow_rules.py +++ b/plugins/modules/nd_interface_flow_rules.py @@ -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 @@ -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":