mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 18:56:55 +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
|
|
@ -269,9 +269,9 @@ def main():
|
|||
result = run_module(module.params, module.check_mode)
|
||||
module.exit_json(**result)
|
||||
except GithubException as e:
|
||||
module.fail_json(msg="Github error. {0}".format(repr(e)))
|
||||
module.fail_json(msg=f"Github error. {e}")
|
||||
except Exception as e:
|
||||
module.fail_json(msg="Unexpected error. {0}".format(repr(e)))
|
||||
module.fail_json(msg=f"Unexpected error. {e}")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue