From d0cf4d772751b1029ec7c914de92acbbb67f7a6c Mon Sep 17 00:00:00 2001 From: janiceshi <297289441@qq.com> Date: Mon, 29 Jul 2024 17:47:01 +0800 Subject: [PATCH] =?UTF-8?q?fix():=20=E8=81=94=E5=90=88na=E4=B8=AD=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=A7=8B=E7=BB=88=E6=B2=A1=E6=9C=89=E5=AF=BC=E5=85=A5?= =?UTF-8?q?,=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref: NEXT_BUILDER-5242 --- .../tools/package-union/report_union_micro_app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/brick-container/tools/package-union/report_union_micro_app.py b/packages/brick-container/tools/package-union/report_union_micro_app.py index 808c8c2990..7c979736a2 100644 --- a/packages/brick-container/tools/package-union/report_union_micro_app.py +++ b/packages/brick-container/tools/package-union/report_union_micro_app.py @@ -113,6 +113,7 @@ def create_or_update_micro_app_sa(org, app): def import_micro_app_permissions(org, permission_path): if not os.path.exists(permission_path): + print "permission path {} does not exist, return...".format(permission_path) return headers = {"org": str(org), "user": "defaultUser"} url = "http://{}/api/micro_app/v1/permission/import".format(MICRO_APP_ADDR) @@ -161,7 +162,7 @@ def report_single_standalone_na(union_app_install_path, app_detail, union_app_id "unionAppVersion": union_app_version, } report_standalone_na_ret = report(org, app) - permission_file_path = os.path.join(union_app_install_path, "permissions", "permissions.json") + permission_file_path = os.path.join(single_app_path, "permissions", "permissions.json") import_micro_app_permissions(org, permission_file_path) return report_standalone_na_ret else: