Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 18, 2024
1 parent dddc0d4 commit 438a4a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions plugins/module_utils/network/ios/config/acls/acls.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,9 @@ def list_to_dict(self, param):
for k, v in (
ace.get("destination", {}).get("port_protocol", {}).items()
):
ace["destination"]["port_protocol"][
k
] = self.port_protocl_no_to_protocol(v)
ace["destination"]["port_protocol"][k] = (
self.port_protocl_no_to_protocol(v)
)
if acl.get("acl_type") == "standard":
for ks in list(ace.keys()):
if ks not in [
Expand Down
10 changes: 5 additions & 5 deletions plugins/module_utils/network/ios/config/route_maps/route_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,11 @@ def convert_to_dict(inner_match, key):
"acl",
)
elif match["ip"][each_ip_param].get("prefix_lists"):
match["ip"][each_ip_param][
"prefix_lists"
] = convert_to_dict(
match["ip"][each_ip_param]["prefix_lists"],
"prefix_list",
match["ip"][each_ip_param]["prefix_lists"] = (
convert_to_dict(
match["ip"][each_ip_param]["prefix_lists"],
"prefix_list",
)
)
if match.get("local_preference") and match.get("local_preference").get(
"value",
Expand Down

0 comments on commit 438a4a1

Please sign in to comment.