mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
modules [no]*: use f-strings (#10973)
* modules [no]*: use f-strings * add changelog frag
This commit is contained in:
@@ -137,11 +137,11 @@ class NicTag(object):
|
||||
|
||||
if self.mtu:
|
||||
cmd.append('-p')
|
||||
cmd.append('mtu=' + str(self.mtu))
|
||||
cmd.append(f"mtu={self.mtu}")
|
||||
|
||||
if self.mac:
|
||||
cmd.append('-p')
|
||||
cmd.append('mac=' + str(self.mac))
|
||||
cmd.append(f"mac={self.mac}")
|
||||
|
||||
cmd.append(self.name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user