Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ovirt_storage_vm_info and ovirt_storage_template_info: fix docs #356

Merged
merged 5 commits into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions plugins/modules/ovirt_storage_template_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
description:
- "The storage domain name where the templates should be listed."
type: str
required: true
extends_documentation_fragment: @NAMESPACE@.@NAME@.ovirt_info
'''

Expand All @@ -61,7 +62,8 @@
# Gather information about all Templates which relate to a storage domain and
# are unregistered:
- @NAMESPACE@.@NAME@.ovirt_storage_template_info:
unregistered=True
unregistered: True
storage_domain: storage
register: result
- ansible.builtin.debug:
msg: "{{ result.ovirt_storage_templates }}"
Expand Down Expand Up @@ -89,7 +91,7 @@

def main():
argument_spec = ovirt_info_full_argument_spec(
storage_domain=dict(default=None),
storage_domain=dict(default=None, required=True),
max=dict(default=None, type='int'),
unregistered=dict(default=False, type='bool'),
)
Expand Down
6 changes: 4 additions & 2 deletions plugins/modules/ovirt_storage_vm_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
description:
- "The storage domain name where the virtual machines should be listed."
type: str
required: True
extends_documentation_fragment: @NAMESPACE@.@NAME@.ovirt_info
'''

Expand All @@ -61,7 +62,8 @@
# Gather information about all VMs which relate to a storage domain and
# are unregistered:
- @NAMESPACE@.@NAME@.ovirt_storage_vm_info:
unregistered=True
unregistered: True
storage_domain: storage
register: result
- ansible.builtin.debug:
msg: "{{ result.ovirt_storage_vms }}"
Expand Down Expand Up @@ -89,7 +91,7 @@

def main():
argument_spec = ovirt_info_full_argument_spec(
storage_domain=dict(default=None),
storage_domain=dict(default=None, required=True),
max=dict(default=None, type='int'),
unregistered=dict(default=False, type='bool'),
)
Expand Down