mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
[PR #10727/6f40eff6 backport][stable-11] simplify string formatting in some modules (#10773)
simplify string formatting in some modules (#10727)
* simplify string formatting in some modules
* add changelog frag
(cherry picked from commit 6f40eff632)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
@@ -414,7 +414,7 @@ def main():
|
||||
COMMANDARGS.extend(['--table', table])
|
||||
|
||||
if wait is not None:
|
||||
TESTCOMMAND.extend(['--wait', '%s' % wait])
|
||||
TESTCOMMAND.extend(['--wait', '%d' % wait])
|
||||
|
||||
if modprobe is not None:
|
||||
b_modprobe = to_bytes(modprobe, errors='surrogate_or_strict')
|
||||
@@ -502,7 +502,7 @@ def main():
|
||||
MAINCOMMAND.insert(0, bin_iptables_restore)
|
||||
|
||||
if wait is not None:
|
||||
MAINCOMMAND.extend(['--wait', '%s' % wait])
|
||||
MAINCOMMAND.extend(['--wait', '%d' % wait])
|
||||
|
||||
if _back is not None:
|
||||
b_back = to_bytes(_back, errors='surrogate_or_strict')
|
||||
|
||||
Reference in New Issue
Block a user