This commit is contained in:
pycook
2016-01-07 14:10:55 +08:00
committed by pycook
parent 41cbc1e5b8
commit b3d5557bc7
3 changed files with 5 additions and 2 deletions

View File

@@ -104,7 +104,8 @@ def delete_attribute(attr_id=None):
@attribute.route("/citype/<int:type_id>", methods=["GET"])
def get_attributes_by_type(type_id=None):
manager = CITypeAttributeManager()
from models.cmdb import CITypeCache, CIAttributeCache
from models.attribute import CIAttributeCache
from models.ci_type import CITypeCache
t = CITypeCache.get(type_id)
if not t: