diff --git a/cmdb-api/api/commands/click_cmdb.py b/cmdb-api/api/commands/click_cmdb.py index e7ad1ea..54c8c91 100644 --- a/cmdb-api/api/commands/click_cmdb.py +++ b/cmdb-api/api/commands/click_cmdb.py @@ -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: