mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 11:23:51 +08:00
fix(api): cmdb-init-acl commands (#368)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user