mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
remove % templating (#11231)
* remove % templating * add changelog frag * suggestions from review * remove unused import
This commit is contained in:
@@ -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)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user