mirror of https://github.com/Aidaho12/haproxy-wi
wrong variable comman instead of command. fixed.
parent
a879871cf6
commit
a4bbe0b197
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue