Skip to content

Commit

Permalink
Merge pull request #39 from TencentBlueKing/develop
Browse files Browse the repository at this point in the history
 bugfix: raise exception after replace esb api prefix
  • Loading branch information
wklken authored Aug 5, 2021
2 parents 7904325 + 775d33e commit 7334c8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iam/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

__version__ = "1.1.17"
__version__ = "1.1.18"
2 changes: 1 addition & 1 deletion iam/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _call_esb_api(self, http_func, path, data, bk_token, bk_username, timeout=No
"""
if self._apigateway_on:
apigw_path = path.replace("/api/c/compapi/v2/iam/", "/api/v1/open/")
if not path.startswith("/api/v1/open/"):
if not apigw_path.startswith("/api/v1/open/"):
raise AuthAPIError("can't find the matched apigateway path, the esb api path is %s" % path)

return self._call_apigateway_api(http_func, apigw_path, data, timeout)
Expand Down
4 changes: 4 additions & 0 deletions release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
版本日志
===============
# v1.1.18

- bugfix: raise exception after replace esb api prefix

# v1.1.17

- contrib/iam_migration support calling api via APIGateway
Expand Down

0 comments on commit 7334c8f

Please sign in to comment.