Skip to content

Commit

Permalink
ssh: recover default remote_root to None (#381)
Browse files Browse the repository at this point in the history
Fix regression caused by #370.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz authored Oct 19, 2023
1 parent 7de5f72 commit 9720760
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dpdispatcher/ssh_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 :
Expand Down

0 comments on commit 9720760

Please sign in to comment.