From 41d086a9b34776677684cdfefda9d4bf100604cf Mon Sep 17 00:00:00 2001 From: iSecloud <869820505@qq.com> Date: Fri, 20 Sep 2024 10:51:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(backend):=20=E4=B8=8B=E5=8F=91nginx?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E4=BF=AE=E6=94=B9=E4=BD=BF=E7=94=A8admin=20#?= =?UTF-8?q?7020?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/backend/db_periodic_task/local_tasks/db_proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbm-ui/backend/db_periodic_task/local_tasks/db_proxy.py b/dbm-ui/backend/db_periodic_task/local_tasks/db_proxy.py index 1a1b886cf9..95f9eba854 100644 --- a/dbm-ui/backend/db_periodic_task/local_tasks/db_proxy.py +++ b/dbm-ui/backend/db_periodic_task/local_tasks/db_proxy.py @@ -64,7 +64,7 @@ def _job_push_config_file(_cloud_id, _file_list, _nginx_list): job_payload["callback_url"] = f"{env.BK_SAAS_CALLBACK_URL}/apis/proxypass/push_conf_callback/" logger.info(_("nginx配置文件下发参数:{}").format(job_payload)) - _resp = JobApi.push_config_file(job_payload, raw=True) + _resp = JobApi.push_config_file(job_payload, raw=True, use_admin=True) if not _resp["result"]: raise ProxyPassBaseException(_("下发文件job启动失败,错误信息: {}").format(_resp["message"]))