mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-19 18:31:33 +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
|
|
@ -88,7 +88,7 @@ def do_notify_grove(module, channel_token, service, message, url=None, icon_url=
|
|||
data = urlencode(my_data)
|
||||
response, info = fetch_url(module, my_url, data=data)
|
||||
if info['status'] != 200:
|
||||
module.fail_json(msg="failed to send notification: %s" % info['msg'])
|
||||
module.fail_json(msg=f"failed to send notification: {info['msg']}")
|
||||
|
||||
# ==============================================================
|
||||
# main
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue