From b1b9ba7679ced31e9797cd3a673dbef7d47b1023 Mon Sep 17 00:00:00 2001 From: madsmpedersen <m@madsp.dk> Date: Thu, 23 Jun 2016 15:53:30 +0200 Subject: [PATCH] handle empty password --- wetb/utils/cluster_tools/ssh_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wetb/utils/cluster_tools/ssh_client.py b/wetb/utils/cluster_tools/ssh_client.py index 3a2ed178..4a69aac1 100644 --- a/wetb/utils/cluster_tools/ssh_client.py +++ b/wetb/utils/cluster_tools/ssh_client.py @@ -41,7 +41,7 @@ class SSHClient(object): return self.client def connect(self): - if self.password is None: + if self.password is None or self.password == "": raise IOError("Password not set") self.client = paramiko.SSHClient() self.client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) -- GitLab