From 87386d91b6e3f6afd146d521a3f88296ecbc29ff Mon Sep 17 00:00:00 2001 From: lucasfontini Date: Sun, 31 Mar 2024 14:42:59 -0300 Subject: [PATCH] fixed code for connection --- netmiko/actions/send_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netmiko/actions/send_command.py b/netmiko/actions/send_command.py index 4de8c83..61d9a84 100644 --- a/netmiko/actions/send_command.py +++ b/netmiko/actions/send_command.py @@ -30,7 +30,7 @@ def run(self, hostname, device_type, port, command): if credentials: connection = connect(hostname, USER, PASSWORD, device_type=device_type, port=port) - if connection != None: + if connection is not None: output = connection.send_command(command) connection.disconnect() print(output)