mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
modules [no]*: use f-strings (#10973)
* modules [no]*: use f-strings * add changelog frag
This commit is contained in:
@@ -188,7 +188,7 @@ def run():
|
||||
job = dict()
|
||||
job['job'] = job_json
|
||||
except nomad.api.exceptions.BadRequestNomadException as err:
|
||||
msg = str(err.nomad_resp.reason) + " " + str(err.nomad_resp.text)
|
||||
msg = f"{err.nomad_resp.reason} {err.nomad_resp.text}"
|
||||
module.fail_json(msg=to_native(msg))
|
||||
try:
|
||||
job_id = job_json.get('ID')
|
||||
|
||||
Reference in New Issue
Block a user