Skip to content

Commit

Permalink
linux_ssh: fix for 'Invalid output from MD5 command' (#3486)
Browse files Browse the repository at this point in the history
Co-authored-by: Kirk Byers <[email protected]>
  • Loading branch information
pestophagous and ktbyers authored Aug 26, 2024
1 parent da1b1e8 commit eefa4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netmiko/linux/linux_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def remote_md5(
remote_file = self.source_file
remote_md5_cmd = f"{base_cmd} {self.file_system}/{remote_file}"
dest_md5 = self.ssh_ctl_chan._send_command_str(remote_md5_cmd, read_timeout=300)
dest_md5 = self.process_md5(dest_md5).strip()
dest_md5 = self.process_md5(dest_md5.strip()).strip()
return dest_md5

@staticmethod
Expand Down

0 comments on commit eefa4c4

Please sign in to comment.