Update ci.py

兼容 py2
This commit is contained in:
lovvvve 2021-01-28 16:56:04 +08:00 committed by GitHub
parent 08fcac6a12
commit 8a5dadcaa4
1 changed files with 1 additions and 1 deletions

View File

@ -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)