Skip to content

Commit a497372

Browse files
committed
minor: framework update to 2.1.1
1 parent 90d2db6 commit a497372

6 files changed

Lines changed: 15 additions & 10 deletions

File tree

bk-plugin-framework/bk_plugin_framework/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
specific language governing permissions and limitations under the License.
1111
"""
1212

13-
__version__ = "2.1.0"
13+
__version__ = "2.1.1"

bk-plugin-framework/bk_plugin_framework/envs.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,19 @@ def compute_settings(settings: BaseSettings) -> dict:
3131
hashlib.sha256(default_settings.BK_APP_SECRET.encode("utf-8")).hexdigest()[:32].encode()
3232
)
3333
except Exception as e:
34-
logger.exception("get CALLBACK_KEY fail")
35-
raise Exception(e)
36-
37-
callback_host = default_settings.BK_API_URL_TMPL.format(api_name=default_settings.BK_APIGW_NAME)
34+
logger.exception(f"get CALLBACK_KEY fail: {e}")
35+
raise
3836

3937
BKPAAS_ENVIRONMENT = os.getenv("BKPAAS_ENVIRONMENT", "dev")
4038
BKPAAS_ENGINE_REGION = os.getenv("BKPAAS_ENGINE_REGION", "open")
4139

40+
try:
41+
callback_host = default_settings.BK_API_URL_TMPL.format(api_name=default_settings.BK_APIGW_NAME)
42+
except Exception as e:
43+
logger.exception(f"set callback_host fail: {e}")
44+
if BKPAAS_ENVIRONMENT != "dev":
45+
raise
46+
4247
if BKPAAS_ENGINE_REGION == "ieod":
4348
user_token_key_name = "bk_ticket" if BKPAAS_ENVIRONMENT == "dev" else "jwt"
4449
else:

bk-plugin-framework/poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bk-plugin-framework/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "bk-plugin-framework"
3-
version = "2.1.0"
3+
version = "2.1.1"
44
description = "bk plugin python framework"
55
authors = ["Your Name <you@example.com>"]
66
license = "MIT"
@@ -10,7 +10,7 @@ python = "^3.6.1,<4.0"
1010
pydantic = "^1.0"
1111
werkzeug = "^2.0.0"
1212
apigw-manager = {version = ">=1.0.6, <1.2.0", extras = ["extra"]}
13-
bk-plugin-runtime = "2.0.4"
13+
bk-plugin-runtime = "2.0.5"
1414

1515
[tool.poetry.dev-dependencies]
1616
pytest = "^7.0.0"

runtime/bk-plugin-runtime/bk_plugin_runtime/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
specific language governing permissions and limitations under the License.
1111
"""
1212

13-
__version__ = "2.0.4"
13+
__version__ = "2.0.5"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# base
22
# DO NOT DELETE ANY PACKAGE IN base SECTION !!!
3-
bk-plugin-framework==2.1.0
3+
bk-plugin-framework==2.1.1
44
# add your custom requirements below this line

0 commit comments

Comments
 (0)