mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
modules p*: use f-strings (#10974)
* modules p*: use f-strings * add changelog frag
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user