mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-09 13:37:15 +00:00
modules g*: use f-strings (#10958)
* modules g*: use f-strings * add changelog frag * remove extraneous to_native()
This commit is contained in:
parent
a3987c9844
commit
b67e7c83cf
31 changed files with 250 additions and 245 deletions
|
|
@ -145,7 +145,7 @@ class GConftool(StateModuleHelper):
|
|||
def _make_process(self, fail_on_err):
|
||||
def process(rc, out, err):
|
||||
if err and fail_on_err:
|
||||
self.do_raise('gconftool-2 failed with error:\n%s' % err.strip())
|
||||
self.do_raise(f'gconftool-2 failed with error:\n{err.strip()}')
|
||||
out = out.rstrip()
|
||||
self.vars.value = None if out == "" else out
|
||||
return self.vars.value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue