diff --git a/app/modules/config/config.py b/app/modules/config/config.py index ed6f79e8..a1cfaba5 100644 --- a/app/modules/config/config.py +++ b/app/modules/config/config.py @@ -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"): diff --git a/app/modules/service/common.py b/app/modules/service/common.py index 1d9631ae..d6593740 100644 --- a/app/modules/service/common.py +++ b/app/modules/service/common.py @@ -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: