summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-11-21 09:57:48 +0100
committerLoic Guegan <loic.guegan@mailbox.org>2023-11-21 09:57:48 +0100
commit5914c11c890b7a0bac92161d28bd9400ec3b8bb1 (patch)
tree94cd1b58b2d0eb8867862737017356b28929708e
parentc217ff5e7b4d9be35e604d000506d2c60d52bd59 (diff)
Minor changes
-rwxr-xr-xclusterman/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clusterman/utils.py b/clusterman/utils.py
index a0095b3..b68e0a6 100755
--- a/clusterman/utils.py
+++ b/clusterman/utils.py
@@ -7,7 +7,7 @@ def ssh_exec(host,command,use_key=True):
if use_key and len(key_path) > 0:
output=subprocess.check_output(["ssh","-o", "StrictHostKeyChecking=no", "-o", "PasswordAuthentication=no", "-i", CONF["ssh"]["key_path"],"{}@{}".format(user,host), command])
return output.decode("utf-8")
- else if use_key:
+ elif use_key:
print("Configuration variable \"key_path\" is not set")
sys.exit(1)
else: