From 784cb2c827478155540dd162200d4bbcde4c9caa Mon Sep 17 00:00:00 2001 From: zhufl Date: Fri, 20 Nov 2020 16:36:37 +0800 Subject: [PATCH] Fix invalid argument formatting in the exception message This is to fix the invalid argument formatting in the exception message. Change-Id: I828be0751e598cf1aad25f78241b2fbc7b2e1781 --- ceilometer/gnocchi_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceilometer/gnocchi_client.py b/ceilometer/gnocchi_client.py index e2ea7e1016..2effbdfb7b 100644 --- a/ceilometer/gnocchi_client.py +++ b/ceilometer/gnocchi_client.py @@ -258,8 +258,8 @@ def upgrade_resource_types(conf): gnocchi_version = version.LooseVersion(gnocchi.build.get()) if gnocchi_version < REQUIRED_VERSION: - raise Exception("required gnocchi version is %s, got %s", - REQUIRED_VERSION, gnocchi_version) + raise Exception("required gnocchi version is %s, got %s" % + (REQUIRED_VERSION, gnocchi_version)) for name, attributes in resources_initial.items(): try: