Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Teingi committed Aug 28, 2024
1 parent a394a4b commit c2ceaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/gather/gather_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def __pharse_log(self, ssh_client, home_path, log_name, gather_path):
self.stdio.verbose('grep files, run cmd = [{0}]'.format(grep_cmd))
ssh_client.exec_cmd(grep_cmd)
else:
cp_cmd = "cp {log_dir}/{log_name} {gather_path}/{log_name} ".format(gather_path=gather_path, log_name=log_name, log_dir=log_path)
cp_cmd = "cp -p {log_dir}/{log_name} {gather_path}/{log_name} ".format(gather_path=gather_path, log_name=log_name, log_dir=log_path)
self.stdio.verbose('copy files, run cmd = [{0}]'.format(cp_cmd))
ssh_client.exec_cmd(cp_cmd)

Expand Down

0 comments on commit c2ceaf2

Please sign in to comment.