Skip to content

Commit

Permalink
fix(backend): 下发nginx模板修改使用admin TencentBlueKing#7020
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Sep 20, 2024
1 parent 4da3d39 commit 41d086a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbm-ui/backend/db_periodic_task/local_tasks/db_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]))

Expand Down

0 comments on commit 41d086a

Please sign in to comment.