fix(api): cmdb-init-acl commands

This commit is contained in:
pycook 2024-01-09 10:04:07 +08:00
parent 9ec105ca37
commit ab050bf589
1 changed files with 2 additions and 0 deletions

View File

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