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)