From e342aaca48904a893411eb27520d4f4113c4ba69 Mon Sep 17 00:00:00 2001 From: Corentin Carton de Wiart Date: Fri, 8 Mar 2024 18:07:31 +0000 Subject: [PATCH] debug SSHClient --- pyproject.toml | 2 +- tracksuite/init.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8c5c1a3..073f7e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "tracksuite" -version = "0.3.2" +version = "0.3.3" description = "ecflow suite tracking and deploying toolkit" authors = [ { name = "European Centre for Medium-Range Weather Forecasts (ECMWF)", email = "software.support@ecmwf.int" }, diff --git a/tracksuite/init.py b/tracksuite/init.py index 06b548f..b55b1b0 100644 --- a/tracksuite/init.py +++ b/tracksuite/init.py @@ -53,7 +53,6 @@ def __init__(self, host, user, ssh_options=None): def is_path(self, path): # Build the ssh command cmd = [f"[ -d {path} ] && exit 0 || exit 1"] - ret = self.exec(cmd) try: ret = self.exec(cmd) return ret.returncode == 0