mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-30 15:38:53 +00:00
modules [jk]*: use f-strings (#10970)
* modules [jk]*: use f-strings * add changelog frag * Apply suggestions from code review * typing insanity
This commit is contained in:
parent
8120e9347e
commit
4a6a449fbd
46 changed files with 363 additions and 408 deletions
|
|
@ -216,7 +216,7 @@ def get_kibana_version(module, plugin_bin, allow_root):
|
|||
|
||||
rc, out, err = module.run_command(cmd_args)
|
||||
if rc != 0:
|
||||
module.fail_json(msg="Failed to get Kibana version : %s" % err)
|
||||
module.fail_json(msg=f"Failed to get Kibana version : {err}")
|
||||
|
||||
return out.strip()
|
||||
|
||||
|
|
@ -258,7 +258,7 @@ def main():
|
|||
module.exit_json(changed=False, name=name, state=state)
|
||||
|
||||
if version:
|
||||
name = name + '/' + version
|
||||
name = f"{name}/{version}"
|
||||
|
||||
if state == "present":
|
||||
if force:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue