From 8a5dadcaa4b42885de03b674f7e72ae671cf925d Mon Sep 17 00:00:00 2001 From: lovvvve Date: Thu, 28 Jan 2021 16:56:04 +0800 Subject: [PATCH] Update ci.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 兼容 py2 --- cmdb-api/api/lib/cmdb/ci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)