mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-16 17:01:30 +00:00
modules p*: use f-strings (#10974)
* modules p*: use f-strings * add changelog frag
This commit is contained in:
parent
d51e4c188b
commit
8120e9347e
42 changed files with 299 additions and 300 deletions
|
|
@ -85,7 +85,7 @@ class PacemakerInfo(ModuleHelper):
|
|||
def _process_command_output(self, cli_action=""):
|
||||
def process(rc, out, err):
|
||||
if rc != 0:
|
||||
self.do_raise('pcs {0} config failed with error (rc={1}): {2}'.format(cli_action, rc, err))
|
||||
self.do_raise(f'pcs {cli_action} config failed with error (rc={rc}): {err}')
|
||||
out = json.loads(out)
|
||||
return None if out == "" else out
|
||||
return process
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue