Skip to content

Commit

Permalink
ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkala committed Dec 9, 2024
1 parent 2e008d3 commit 49020eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nautobot_device_onboarding/nornir_plays/command_getter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CommandGetter."""

import json
from typing import Dict

Expand Down Expand Up @@ -109,9 +110,7 @@ def netmiko_send_commands(
host=task.host, result=f"{task.host.name} has missing definitions in command_mapper YAML file.", failed=True
)
if not tcp_ping(task.host.hostname, task.host.port):
return Result(
host=task.host, result=f"{task.host.name} failed connectivity check via tcp_ping.", failed=True
)
return Result(host=task.host, result=f"{task.host.name} failed connectivity check via tcp_ping.", failed=True)
task.host.data["platform_parsing_info"] = command_getter_yaml_data[task.host.platform]
commands = _get_commands_to_run(
command_getter_yaml_data[task.host.platform][command_getter_job],
Expand Down

0 comments on commit 49020eb

Please sign in to comment.