Skip to content

Commit

Permalink
fix: the wrong client return
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Aug 28, 2024
1 parent 3f3e0da commit ec6e68f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/utils/operandi_utils/hpc/nhr_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ def ssh_client(self):

return self._ssh_client



@staticmethod
def check_keyfile_existence(key_path: Path):
if not key_path.exists():
Expand Down
3 changes: 1 addition & 2 deletions src/utils/operandi_utils/hpc/nhr_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def sftp_client(self):
return self.sftp_client # recursive call to itself to try again
return self._sftp_client
"""

return self._ssh_client
return self._sftp_client

def create_slurm_workspace_zip(
self, ocrd_workspace_dir: str, workflow_job_id: str, nextflow_script_path: str,
Expand Down

0 comments on commit ec6e68f

Please sign in to comment.