1
0
Fork 0
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:
Alexei Znamensky 2025-10-26 19:54:15 +13:00 committed by GitHub
parent 8120e9347e
commit 4a6a449fbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 363 additions and 408 deletions

View file

@ -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: