fix: update attribute group without name params will fail. #tests/test_cmdb_ci_type.py::test_update_attribute_group_ci_type

This commit is contained in:
penzai
2020-02-04 10:53:07 +08:00
parent bb9d7da435
commit 00f4eeb90d

View File

@@ -441,6 +441,8 @@ class CITypeAttributeGroupManager(object):
return abort(400, "Group <{0}> duplicate".format(name))
if name is not None:
group.update(name=name)
else:
name = group.name
cls.create_or_update(group.type_id, name, attr_order, group_order)