mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-03 00:43:07 +00:00
Reformat everything.
This commit is contained in:
parent
3f2213791a
commit
340ff8586d
1008 changed files with 61301 additions and 58309 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue