mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
cloud: ovirt: Various fixes for oVirt modules (#19141)
* cloud: ovirt: fix various issues in ovirt modules * cloud: ovirt: add support for nfs version * cloud: ovirt: Fix facts documentation * Add proper documentation fragmet * Add proper argument_spec * Fix return values * cloud: ovirt: fix pep8
This commit is contained in:
parent
afca957396
commit
5400a06ac4
27 changed files with 203 additions and 120 deletions
|
@ -26,7 +26,7 @@ from ansible.module_utils.ovirt import (
|
|||
check_sdk,
|
||||
create_connection,
|
||||
get_dict_of_struct,
|
||||
ovirt_full_argument_spec,
|
||||
ovirt_facts_full_argument_spec,
|
||||
)
|
||||
|
||||
|
||||
|
@ -50,7 +50,7 @@ options:
|
|||
description:
|
||||
- "Search term which is accepted by oVirt search backend."
|
||||
- "For example to search datacenter I(X) use following pattern: I(name=X)"
|
||||
extends_documentation_fragment: ovirt
|
||||
extends_documentation_fragment: ovirt_facts
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
|
@ -74,7 +74,7 @@ ovirt_datacenters:
|
|||
|
||||
|
||||
def main():
|
||||
argument_spec = ovirt_full_argument_spec(
|
||||
argument_spec = ovirt_facts_full_argument_spec(
|
||||
pattern=dict(default='', required=False),
|
||||
)
|
||||
module = AnsibleModule(argument_spec)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue