mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-24 04:39:15 +00:00
Replace % string formatting with f-strings across multiple plugins (#11908)
* Replace % string formatting with f-strings across multiple plugins Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> * Add changelog fragment for PR 11908 Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
253ac45dd3
commit
53397c081a
14 changed files with 65 additions and 64 deletions
|
|
@ -120,7 +120,6 @@ def decompress(b_src, b_dest, handler):
|
|||
|
||||
|
||||
class Decompress(ModuleHelper):
|
||||
destination_filename_template = "%s_decompressed"
|
||||
output_params = "dest"
|
||||
|
||||
module = dict(
|
||||
|
|
@ -189,7 +188,7 @@ class Decompress(ModuleHelper):
|
|||
if src.endswith(fmt_extension) and len(src) > len(fmt_extension):
|
||||
filename = src[: -len(fmt_extension)]
|
||||
else:
|
||||
filename = Decompress.destination_filename_template % src
|
||||
filename = f"{src}_decompressed"
|
||||
return filename
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue