mirror of https://github.com/Aidaho12/haproxy-wi
parent
23b266dd0d
commit
6ec8df1ee5
|
@ -64,7 +64,6 @@ def upload_and_restart(server_ip: str, cfg: str, **kwargs):
|
|||
file_format = 'conf'
|
||||
config_path = kwargs.get('config_file_name')
|
||||
config_date = get_date.return_date('config')
|
||||
print(server_ip)
|
||||
server_id = sql.select_server_id_by_ip(server_ip=server_ip)
|
||||
|
||||
if kwargs.get("nginx"):
|
||||
|
|
|
@ -39,9 +39,12 @@ def is_not_allowed_to_restart(server_id: int, service: str) -> None:
|
|||
else:
|
||||
is_restart = 0
|
||||
|
||||
if int(is_restart) == 1:
|
||||
print('warning: this service is not allowed to be restarted')
|
||||
return
|
||||
try:
|
||||
if int(is_restart) == 1:
|
||||
print('warning: this service is not allowed to be restarted')
|
||||
return
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def get_exp_version(server_ip: str, service_name: str) -> str:
|
||||
|
|
Loading…
Reference in New Issue