From 97207604d790237c467626a9815bdd673434686c Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 19 Oct 2023 06:25:59 -0400 Subject: [PATCH] ssh: recover default remote_root to None (#381) Fix regression caused by #370. Signed-off-by: Jinzhe Zeng --- dpdispatcher/ssh_context.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dpdispatcher/ssh_context.py b/dpdispatcher/ssh_context.py index c54acb46..cf67a62d 100644 --- a/dpdispatcher/ssh_context.py +++ b/dpdispatcher/ssh_context.py @@ -420,7 +420,7 @@ def __init__( assert os.path.isabs(remote_root), "remote_root must be a abspath" self.temp_remote_root = remote_root self.remote_profile = remote_profile - self.remote_root = "" + self.remote_root = None # self.job_uuid = None self.clean_asynchronously = clean_asynchronously @@ -661,6 +661,7 @@ def download( mark_failure=True, back_error=False, ): + assert self.remote_root is not None self.ssh_session.ensure_alive() file_list = [] # for ii in job_dirs :