mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Un-remove wrongly removed ovirt modules and adjust deprecation to Ansible 2.14 (#353)
* Un-remove wrongly removed ovirt modules and adjust deprecation to Ansible 2.14 (regular 4 version deprecation cycle). * Update sanity-2.10.txt * Vendor dependencies from ovirt.ovirt as deprecated, and remove dependency on ovirt.ovirt. * Use ovirt_facts doc_fragment, and don't add _ovirt_info doc_fragment.
This commit is contained in:
parent
dee1e71796
commit
a0a534508a
30 changed files with 1050 additions and 129 deletions
|
@ -28,9 +28,9 @@ module: ovirt_network_facts
|
|||
short_description: Retrieve information about one or more oVirt/RHV networks
|
||||
author: "Ondra Machacek (@machacekondra)"
|
||||
deprecated:
|
||||
removed_in: "2.10"
|
||||
removed_in: "2.14"
|
||||
why: When migrating to collection we decided to use only _info modules.
|
||||
alternative: Use M(ovirt_network_info) instead
|
||||
alternative: Use C(ovirt_network_info) from the C(ovirt.ovirt) collection instead
|
||||
description:
|
||||
- "Retrieve information about one or more oVirt/RHV networks."
|
||||
- This module was called C(ovirt_network_facts) before Ansible 2.9, returning C(ansible_facts).
|
||||
|
@ -45,7 +45,7 @@ options:
|
|||
- "Search term which is accepted by oVirt/RHV search backend."
|
||||
- "For example to search network starting with string vlan1 use: name=vlan1*"
|
||||
extends_documentation_fragment:
|
||||
- ovirt.ovirt.ovirt_info
|
||||
- community.general.ovirt_facts
|
||||
|
||||
'''
|
||||
|
||||
|
@ -77,7 +77,7 @@ import traceback
|
|||
|
||||
from ansible.module_utils.common.removed import removed_module
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible_collections.ovirt.ovirt.plugins.module_utils.ovirt import (
|
||||
from ansible_collections.community.general.plugins.module_utils._ovirt import (
|
||||
check_sdk,
|
||||
create_connection,
|
||||
get_dict_of_struct,
|
||||
|
@ -123,4 +123,4 @@ def main():
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
removed_module("2.10")
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue