Skip to content

Commit

Permalink
Merge pull request #4371 from easyops-cn/janice/fix_union_na_sh
Browse files Browse the repository at this point in the history
Janice/fix union na sh
  • Loading branch information
lijmyeah authored Jul 29, 2024
2 parents 34aa617 + d0cf4d7 commit 51aad29
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 51aad29

Please sign in to comment.