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:
parent
d5719dadb8
commit
70e873cc70
@ -87,8 +87,8 @@ def database_shards_info(context, hostnames):
|
|||||||
|
|
||||||
host_shard_id = host.get('mariadb_shard_id')
|
host_shard_id = host.get('mariadb_shard_id')
|
||||||
if host_shard_id is None:
|
if host_shard_id is None:
|
||||||
raise FilterError(f"'mariadb_shard_id' is undefined "
|
raise FilterError("'mariadb_shard_id' is undefined "
|
||||||
"for host '{hostname}'")
|
f"for host '{hostname}'")
|
||||||
else:
|
else:
|
||||||
host_shard_id = str(host_shard_id)
|
host_shard_id = str(host_shard_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user