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 Oct 10, 2024
1 parent 2c64aa9 commit aa1fabf
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ def monitor_sessions(self: AvdStructuredConfigConnectedEndpoints) -> list | None
}

if get(merged_settings, "session_settings.access_group") is not None and get(session, "source_settings.access_group") is not None:
msg = (
f"For {self.shared_utils.hostname}, an ACL is set on {session["interface"]} even though ACL is set for monitor session {session_name}."
)
raise AristaAvdError(msg)
msg = (
f"For {self.shared_utils.hostname}, an ACL is set on {session["interface"]} even though ACL is set for monitor session {session_name}."
)
raise AristaAvdError(msg)

elif (access_group := get(session, "source_settings.access_group")) is not None:
if (access_group := get(session, "source_settings.access_group")) is not None:
source["access_group"] = {
"type": access_group.get("type"),
"name": access_group.get("name"),
Expand Down

0 comments on commit aa1fabf

Please sign in to comment.