mirror of
https://github.com/veops/cmdb.git
synced 2025-08-25 06:51:10 +08:00
Merge branch 'master' of https://github.com/fxiang21/cmdb
This commit is contained in:
@@ -129,7 +129,9 @@ class AttributeValueManager(object):
|
||||
operate_type = OperateType.ADD if existed_attr is None else OperateType.UPDATE
|
||||
|
||||
value_list = handle_arg_list(value) if attr.is_list else [value]
|
||||
|
||||
if not isinstance(value, list):
|
||||
value_list = [value]
|
||||
|
||||
for v in value_list:
|
||||
v = self._validate(attr, v, value_table, ci_id)
|
||||
if not v and attr.value_type != Attribute.TEXT:
|
||||
|
Reference in New Issue
Block a user