mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 20:07:16 +08:00
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:
@@ -441,6 +441,8 @@ class CITypeAttributeGroupManager(object):
|
|||||||
return abort(400, "Group <{0}> duplicate".format(name))
|
return abort(400, "Group <{0}> duplicate".format(name))
|
||||||
if name is not None:
|
if name is not None:
|
||||||
group.update(name=name)
|
group.update(name=name)
|
||||||
|
else:
|
||||||
|
name = group.name
|
||||||
|
|
||||||
cls.create_or_update(group.type_id, name, attr_order, group_order)
|
cls.create_or_update(group.type_id, name, attr_order, group_order)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user