Skip to content

Commit

Permalink
fix: 修复 esb 调用 bk_monitor bug (#214)
Browse files Browse the repository at this point in the history
Co-authored-by: schnee <[email protected]>
  • Loading branch information
jiayuan929 and narasux authored Feb 23, 2023
1 parent dea67d6 commit e7479ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apiserver/paasng/paasng/accessories/bkmonitorv3/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def make_bk_monitor_client() -> BkMonitorClient:
bk_app_code=settings.BK_APP_CODE,
bk_app_secret=settings.BK_APP_SECRET,
)
return BkMonitorClient(apigw_client.api)
return BkMonitorClient(apigw_client.api)

# ESB 开启了免用户认证,但是又限制了用户名不能为空,所以需要给一个随机字符串
esb_client = get_client_by_username("admin")
Expand Down
2 changes: 1 addition & 1 deletion svc-otel/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion svc-otel/svc_otel/bkmonitorv3/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def make_bk_monitor_client() -> BkMonitorClient:
'bk_app_secret': settings.BK_APP_SECRET,
}
)
return BkMonitorClient(apigw_client.api)
return BkMonitorClient(apigw_client.api)

# ESB 开启了免用户认证,但是又限制了用户名不能为空,所以需要给一个随机字符串
esb_client = get_client_by_username("admin")
Expand Down

0 comments on commit e7479ac

Please sign in to comment.