Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Aug 1, 2024
1 parent 15cca2c commit 9789b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/ssh_client/remote_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def exec_cmd(self, cmd):
self.stdio.verbose("use remote_client_sudo")
stdin, stdout, stderr = self._ssh_fd.exec_command("sudo -n true")
if stderr:
if len(stderr.read().decode('utf-8').strip())> 0:
if len(stderr.read().decode('utf-8').strip()) > 0:
raise Exception(stderr.read().decode('utf-8'))
cmd = "sudo {0}".format(cmd)
stdin, stdout, stderr = self._ssh_fd.exec_command(cmd)
Expand Down

0 comments on commit 9789b87

Please sign in to comment.