Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1021

Merged
merged 3 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading