mirror of
https://opendev.org/openstack/kolla-ansible.git
synced 2026-01-16 23:12:09 +00:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue