mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-21 20:30:21 -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
|
@ -13,9 +13,9 @@ module: ovirt_api_facts
|
|||
short_description: Retrieve information about the oVirt/RHV API
|
||||
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_api_info) instead
|
||||
alternative: Use C(ovirt_api_info) from the C(ovirt.ovirt) collection instead
|
||||
description:
|
||||
- "Retrieve information about the oVirt/RHV API."
|
||||
- This module was called C(ovirt_api_facts) before Ansible 2.9, returning C(ansible_facts).
|
||||
|
@ -25,7 +25,7 @@ notes:
|
|||
which contains a information about oVirt/RHV API. You need to register the result with
|
||||
the I(register) keyword to use it."
|
||||
extends_documentation_fragment:
|
||||
- ovirt.ovirt.ovirt_info
|
||||
- community.general.ovirt_facts
|
||||
|
||||
'''
|
||||
|
||||
|
@ -56,7 +56,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,
|
||||
|
@ -96,4 +96,4 @@ def main():
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
removed_module("2.10")
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue