mirror of https://github.com/veops/cmdb.git
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:
parent
bb9d7da435
commit
00f4eeb90d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue