mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 12:11:46 +08:00
fix(common): fix 'ACLManager' object has no attribute 'create_app' (#217)
This commit is contained in:
@@ -216,10 +216,9 @@ class InitDepartment(object):
|
||||
)
|
||||
try:
|
||||
app = acl.validate_app()
|
||||
if app:
|
||||
return acl
|
||||
|
||||
acl.create_app(payload)
|
||||
if not app:
|
||||
acl.create_app(payload)
|
||||
return acl
|
||||
except Exception as e:
|
||||
current_app.logger.error(e)
|
||||
if '不存在' in str(e):
|
||||
|
Reference in New Issue
Block a user