summaryrefslogtreecommitdiff
path: root/clusterman
diff options
context:
space:
mode:
Diffstat (limited to 'clusterman')
-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: