From 70e873cc709fcca9df3659e9ebf394ea16463e37 Mon Sep 17 00:00:00 2001 From: Sven Kieske Date: Mon, 5 Aug 2024 10:37:30 +0200 Subject: [PATCH] fix flake8 error in database_shards.py wrong use of a f-string when no variable is templated Signed-off-by: Sven Kieske Change-Id: I4ef5147eacef32ed93c21d44bf23b664adf1eb91 --- kolla_ansible/database_shards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kolla_ansible/database_shards.py b/kolla_ansible/database_shards.py index 8ffcb7b91f..5afdac8a2c 100644 --- a/kolla_ansible/database_shards.py +++ b/kolla_ansible/database_shards.py @@ -87,8 +87,8 @@ def database_shards_info(context, hostnames): host_shard_id = host.get('mariadb_shard_id') if host_shard_id is None: - raise FilterError(f"'mariadb_shard_id' is undefined " - "for host '{hostname}'") + raise FilterError("'mariadb_shard_id' is undefined " + f"for host '{hostname}'") else: host_shard_id = str(host_shard_id)