fix flake8 error in database_shards.py

wrong use of a f-string when no variable is templated

Signed-off-by: Sven Kieske <kieske@osism.tech>
Change-Id: I4ef5147eacef32ed93c21d44bf23b664adf1eb91
This commit is contained in:
Sven Kieske 2024-08-05 10:37:30 +02:00
parent d5719dadb8
commit 70e873cc70

View File

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