Merge "Fix invalid argument formatting in the exception message"

This commit is contained in:
Zuul 2021-01-14 04:13:08 +00:00 committed by Gerrit Code Review
commit 54d0a7c2d3
1 changed files with 2 additions and 2 deletions

View File

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