release 2.3.4

This commit is contained in:
pycook
2023-09-27 11:37:18 +08:00
parent 55f74a4eba
commit d42513c4a4
4 changed files with 38 additions and 14 deletions

View File

@@ -432,8 +432,9 @@ class CITypeTriggerView(APIView):
assert type_id is not None
option = request.values.get('option')
attr_id = request.values.get('attr_id')
return self.jsonify(CITypeTriggerManager().update(_id, option))
return self.jsonify(CITypeTriggerManager().update(_id, attr_id, option))
@has_perm_from_args("type_id", ResourceTypeEnum.CI, PermEnum.CONFIG, CITypeManager.get_name_by_id)
def delete(self, type_id, _id):