mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 22:04:04 +08:00
Update ci.py
兼容 py2
This commit is contained in:
@@ -191,7 +191,7 @@ class CIManager(object):
|
|||||||
value_manager = AttributeValueManager()
|
value_manager = AttributeValueManager()
|
||||||
for p, v in ci_dict.items():
|
for p, v in ci_dict.items():
|
||||||
if p not in ci_type_attrs_name:
|
if p not in ci_type_attrs_name:
|
||||||
current_app.logger.warning(f'ci_type: {ci_type_name} not has attribute {p}, please check!')
|
current_app.logger.warning('ci_type: {0} not has attribute {1}, please check!'.format(ci_type_name, p))
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
value_manager.create_or_update_attr_value(p, v, ci, _no_attribute_policy)
|
value_manager.create_or_update_attr_value(p, v, ci, _no_attribute_policy)
|
||||||
|
Reference in New Issue
Block a user