1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-03 08:52:55 +00:00

Reformat everything.

This commit is contained in:
Felix Fontein 2025-11-01 12:08:41 +01:00
parent 3f2213791a
commit 340ff8586d
1008 changed files with 61301 additions and 58309 deletions

View file

@ -47,15 +47,16 @@ online_user_info:
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.community.general.plugins.module_utils.online import (
Online, OnlineException, online_argument_spec
Online,
OnlineException,
online_argument_spec,
)
class OnlineUserInfo(Online):
def __init__(self, module):
super().__init__(module)
self.name = 'api/v1/user'
self.name = "api/v1/user"
def main():
@ -65,12 +66,10 @@ def main():
)
try:
module.exit_json(
online_user_info=OnlineUserInfo(module).get_resources()
)
module.exit_json(online_user_info=OnlineUserInfo(module).get_resources())
except OnlineException as exc:
module.fail_json(msg=exc.message)
if __name__ == '__main__':
if __name__ == "__main__":
main()