mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
Reformat everything.
This commit is contained in:
parent
3f2213791a
commit
340ff8586d
1008 changed files with 61301 additions and 58309 deletions
|
|
@ -89,15 +89,18 @@ profiles:
|
|||
"""
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible_collections.community.general.plugins.module_utils.manageiq import ManageIQ, manageiq_argument_spec, manageiq_entities
|
||||
from ansible_collections.community.general.plugins.module_utils.manageiq import (
|
||||
ManageIQ,
|
||||
manageiq_argument_spec,
|
||||
manageiq_entities,
|
||||
)
|
||||
|
||||
|
||||
def main():
|
||||
argument_spec = dict(
|
||||
resource_id=dict(type='int'),
|
||||
resource_name=dict(type='str'),
|
||||
resource_type=dict(required=True, type='str',
|
||||
choices=list(manageiq_entities().keys())),
|
||||
resource_id=dict(type="int"),
|
||||
resource_name=dict(type="str"),
|
||||
resource_type=dict(required=True, type="str", choices=list(manageiq_entities().keys())),
|
||||
)
|
||||
# add the manageiq connection arguments to the arguments
|
||||
argument_spec.update(manageiq_argument_spec())
|
||||
|
|
@ -109,9 +112,9 @@ def main():
|
|||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
resource_id = module.params['resource_id']
|
||||
resource_type_key = module.params['resource_type']
|
||||
resource_name = module.params['resource_name']
|
||||
resource_id = module.params["resource_id"]
|
||||
resource_type_key = module.params["resource_type"]
|
||||
resource_name = module.params["resource_name"]
|
||||
|
||||
# get the resource type
|
||||
resource_type = manageiq_entities()[resource_type_key]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue