mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
refactor: use f-strings (#310)
##### SUMMARY Replace string interpolation with f-strings. Improves readability, and should help prevent #309
This commit is contained in:
parent
deee06281e
commit
c56cbab1a0
7 changed files with 43 additions and 36 deletions
|
|
@ -314,7 +314,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
|||
# method specified in `connect_with`. Users might use `compose` to
|
||||
# override the connection method, or implement custom logic, so we
|
||||
# do not need to abort if nothing matched.
|
||||
self.display.v("[hcloud] %s" % e, server.name)
|
||||
self.display.v(f"[hcloud] {e}", server.name)
|
||||
|
||||
return server_dict
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue