wrong variable comman instead of command. fixed.

pull/50/head
Can KAYA 2018-09-30 22:05:02 +03:00 committed by GitHub
parent a879871cf6
commit a4bbe0b197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -373,7 +373,7 @@ def check_haproxy_config(serv):
commands = [ "haproxy -q -c -f %s" % sql.get_setting('haproxy_config_path') ]
ssh = ssh_connect(serv)
for command in commands:
stdin , stdout, stderr = ssh.exec_command(comman, get_pty=True)
stdin , stdout, stderr = ssh.exec_command(command, get_pty=True)
if not stderr.read():
return True
else:
@ -485,4 +485,4 @@ def get_files(dir = get_config_var('configs', 'haproxy_save_configs_dir'), forma
return files
def get_key(item):
return item[0]
return item[0]