Skip to content

Commit

Permalink
[collect] Temporary directory and cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Trevor Benson <[email protected]>
  • Loading branch information
TrevorBenson committed Nov 26, 2024
1 parent 783ca2b commit d6bc604
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sos/collector/sosnode.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,10 @@ def execute_sos_command(self):
need_root=True,
use_container=True,
env=self.sos_env_vars)
if self.opts.inherit_config_file and not self.local:
self.run_command(f"rm {remote_config} ; rmdir {self.tmpdir}",
use_shell=True,
need_root=True)
if res['status'] == 0:
for line in res['output'].splitlines():
if fnmatch.fnmatch(line, '*sosreport-*tar*'):
Expand Down

0 comments on commit d6bc604

Please sign in to comment.