diff options
| author | Sven Kieske <kieske@osism.tech> | 2024-08-05 10:37:30 +0200 |
|---|---|---|
| committer | Sven Kieske <kieske@osism.tech> | 2024-08-05 14:39:32 +0000 |
| commit | 70e873cc709fcca9df3659e9ebf394ea16463e37 (patch) | |
| tree | 88ec60141cea41f0641bbf6dde9af1b75dc0e709 /kolla_ansible/database_shards.py | |
| parent | d5719dadb8e746e1184c76bb928c61396814bc26 (diff) | |
| download | kolla-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
Diffstat (limited to 'kolla_ansible/database_shards.py')
| -rw-r--r-- | kolla_ansible/database_shards.py | 4 |
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) |
