Skip to content

Commit

Permalink
Merge branch 'main' into fixing-issue-829
Browse files Browse the repository at this point in the history
  • Loading branch information
KB-perByte authored Mar 27, 2024
2 parents d718a78 + cd326fe commit 3377c58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ repos:
args: ["--filter-files"]

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.3.0
hooks:
- id: black
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 3377c58

Please sign in to comment.