1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-30 23:48:54 +00:00

become plugins: use f-strings (#9319)

* become plugins: use f-strings

* add changelog frag
This commit is contained in:
Alexei Znamensky 2024-12-23 22:02:12 +13:00 committed by GitHub
parent d05d067f3b
commit c7edf0a87b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 28 additions and 18 deletions

View file

@ -78,4 +78,4 @@ class BecomeModule(BecomeBase):
become = self.get_option('become_exe')
flags = self.get_option('become_flags')
return '%s %s %s' % (become, flags, shlex_quote(self._build_success_command(cmd, shell)))
return f'{become} {flags} {shlex_quote(self._build_success_command(cmd, shell))}'