remove % templating (#11231)

* remove % templating

* add changelog frag

* suggestions from review

* remove unused import
This commit is contained in:
Alexei Znamensky
2025-12-01 18:46:50 +13:00
committed by GitHub
parent d30428ac71
commit 16d51a8233
3 changed files with 7 additions and 6 deletions

View File

@@ -553,7 +553,7 @@ def _auto_increment_hostname(count, hostname):
name-02, name-03, and so forth.
"""
if "%" not in hostname:
hostname = "%s-%%01d" % hostname # noqa
hostname = f"{hostname}-%01d"
return [hostname % i for i in range(1, count + 1)]