mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
modules [t-z]*: use f-strings (#10978)
* modules [t-z]*: use f-strings * add changelog frag * remove extraneous file
This commit is contained in:
@@ -103,7 +103,7 @@ def get_pifs(session):
|
||||
devicenums = range(0, 7)
|
||||
for pif in pifs.values():
|
||||
for eth in devicenums:
|
||||
interface_name = "eth%s" % (eth)
|
||||
interface_name = f"eth{eth}"
|
||||
bond_name = interface_name.replace('eth', 'bond')
|
||||
if pif['device'] == interface_name:
|
||||
xs_pifs[interface_name] = pif
|
||||
|
||||
Reference in New Issue
Block a user