mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-23 20:29:08 +00:00
modules p*: use f-strings (#10974)
* modules p*: use f-strings * add changelog frag
This commit is contained in:
parent
d51e4c188b
commit
8120e9347e
42 changed files with 299 additions and 300 deletions
|
|
@ -181,7 +181,7 @@ def main():
|
|||
target.push_note(title, body)
|
||||
module.exit_json(changed=False, msg="OK")
|
||||
except PushError as e:
|
||||
module.fail_json(msg="An error occurred, Pushbullet's response: %s" % str(e))
|
||||
module.fail_json(msg=f"An error occurred, Pushbullet's response: {e}")
|
||||
|
||||
module.fail_json(msg="An unknown error has occurred")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue