Pavel Loginov 5 years ago
parent adc1fe033b
commit a3ae4fcfa4

@ -538,14 +538,8 @@ def master_slave_upload_and_restart(serv, cfg, just_save, **kwargs):
error = ""
for master in MASTERS:
if master[0] != None:
if kwargs.get("keepalived") == 1:
error += upload_and_restart(master[0], cfg, just_save=just_save, keepalived=1)
else:
error += upload_and_restart(master[0], cfg, just_save=just_save)
if kwargs.get("keepalived") == 1:
error += upload_and_restart(serv, cfg, just_save=just_save, keepalived=1)
else:
error += upload_and_restart(serv, cfg, just_save=just_save)
return error

Loading…
Cancel
Save