Skip to content

Commit

Permalink
support cmd filter
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Sep 26, 2024
1 parent fc4247b commit 7dfc847
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/ssh_client/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def init(self):
raise Exception("init ssh client error: {}".format(e))

def exec_cmd(self, cmd):
self.__cmd_filter(cmd)
return self.client.exec_cmd(cmd).strip()

def download(self, remote_path, local_path):
Expand Down

0 comments on commit 7dfc847

Please sign in to comment.