1
0
mirror of https://github.com/veops/cmdb.git synced 2025-09-23 05:49:18 +08:00

fix(api): cmdb-init-acl commands ()

This commit is contained in:
pycook
2024-01-09 10:04:53 +08:00
committed by GitHub
parent 0f23feda2f
commit 77d8a21bde

@@ -115,6 +115,8 @@ def cmdb_init_acl():
_app = AppCache.get('cmdb') or App.create(name='cmdb') _app = AppCache.get('cmdb') or App.create(name='cmdb')
app_id = _app.id app_id = _app.id
current_app.test_request_context().push()
# 1. add resource type # 1. add resource type
for resource_type in ResourceTypeEnum.all(): for resource_type in ResourceTypeEnum.all():
try: try: