Skip to content

Commit

Permalink
fixed code for connection
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfontini committed Mar 31, 2024
1 parent ccea754 commit 87386d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netmiko/actions/send_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 87386d9

Please sign in to comment.