Skip to content

Commit

Permalink
issue_822 Added fix to compensate sonarlint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
VitthalMagadum committed Sep 27, 2024
1 parent d8fb591 commit b10c14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anta/tests/snmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def test(self) -> None:
actual_host_details["user"] = host_details.get("v3Params", {}).get("user", "Not Found")

# Verify the VRF for SNMP Hosts. If vrf is default then command output consists empty string.
actual_host_details["vrf"] = "default" if (vrf_name := host_details.get("vrf")) == "" else "Not Found" if vrf_name is None else vrf_name
actual_host_details["vrf"] = "default" if (vrf_name := host_details.get("vrf", "Not Found")) == "" else vrf_name

# Collecting failures logs if any.
failure_logs = get_failed_logs(expected_host_details, actual_host_details)
Expand Down

0 comments on commit b10c14f

Please sign in to comment.