aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Kieske <kieske@osism.tech>2024-08-05 10:37:30 +0200
committerSven Kieske <kieske@osism.tech>2024-08-05 14:39:32 +0000
commit70e873cc709fcca9df3659e9ebf394ea16463e37 (patch)
tree88ec60141cea41f0641bbf6dde9af1b75dc0e709
parentd5719dadb8e746e1184c76bb928c61396814bc26 (diff)
downloadkolla-ansible-70e873cc709fcca9df3659e9ebf394ea16463e37.tar.gz
kolla-ansible-70e873cc709fcca9df3659e9ebf394ea16463e37.zip
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
-rw-r--r--kolla_ansible/database_shards.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kolla_ansible/database_shards.py b/kolla_ansible/database_shards.py
index 8ffcb7b91..5afdac8a2 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)