diff --git a/cmdb-api/api/lib/cmdb/ci.py b/cmdb-api/api/lib/cmdb/ci.py index bfa0bf9..ad84126 100644 --- a/cmdb-api/api/lib/cmdb/ci.py +++ b/cmdb-api/api/lib/cmdb/ci.py @@ -191,7 +191,7 @@ class CIManager(object): value_manager = AttributeValueManager() for p, v in ci_dict.items(): 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 try: value_manager.create_or_update_attr_value(p, v, ci, _no_attribute_policy)