mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-13 23:45:04 +00:00
modules bc*: use f-strings (#10945)
* modules bc*: use f-strings * no quotes or backticks inside f-strs * add changelog frag * rename chglof frag file * rename chglof frag file * copr: re-applied change maintain original logic
This commit is contained in:
parent
f9b4abf930
commit
0ef2235929
31 changed files with 197 additions and 202 deletions
|
|
@ -105,7 +105,7 @@ def send(module, src, dest, msg, media, user_id, api_token, api_secret):
|
|||
Send the message
|
||||
"""
|
||||
AGENT = "Ansible"
|
||||
URI = "https://api.catapult.inetwork.com/v1/users/%s/messages" % user_id
|
||||
URI = f"https://api.catapult.inetwork.com/v1/users/{user_id}/messages"
|
||||
data = {'from': src, 'to': dest, 'text': msg}
|
||||
if media:
|
||||
data['media'] = media
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue