Skip to content

Commit

Permalink
deprecate content_library_item_info due to module generation issues (a…
Browse files Browse the repository at this point in the history
…nsible-collections#551)

deprecate content_library_item_info
  • Loading branch information
mikemorency authored Nov 25, 2024
1 parent 7cc48d2 commit 4090b9f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docs-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
ansible_devel:https://docs.ansible.com/ansible-core/devel/
provide-link-targets: |
ansible_collections.vmware.vmware.vcsa_settings_module
ansible_collections.vmware.vmware.content_library_item_info_module
build-docs:
permissions:
Expand All @@ -39,6 +40,7 @@ jobs:
ansible_devel:https://docs.ansible.com/ansible-core/devel/
provide-link-targets: |
ansible_collections.vmware.vmware.vcsa_settings_module
ansible_collections.vmware.vmware.content_library_item_info_module
# This job requires that the workflow trigger is pull_request_target. However that trigger uses
# whatever version of the workflow is available on main instead of the feature branch.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
deprecated_features:
- content_library_item_info - the module has been deprecated and will be removed in vmware.vmware_rest 5.0.0
5 changes: 5 additions & 0 deletions config/modules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@
- vcenter_vm_hardware_serial:
- vcenter_vm_info:
- vcenter_vm_libraryitem_info:
documentation:
deprecated:
removed_in: 5.0.0
why: This module has been moved to the L(new vmware.vmware collection,https://forum.ansible.com/t/5880)
alternative: Use M(vmware.vmware.content_library_item_info) instead.
- vcenter_vm_power_info:
- vcenter_vm_power:
documentation:
Expand Down
7 changes: 7 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,10 @@ action_groups:
- vcenter_vm_tools_installer_info
- vcenter_vm_tools_installer
- vcenter_vm_tools

plugin_routing:
modules:
content_library_item_info:
deprecation:
removal_version: 5.0.0
warning_text: Use vmware.vmware.content_library_item_info instead.
4 changes: 4 additions & 0 deletions plugins/modules/content_library_item_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
module: content_library_item_info
short_description: Returns the ItemModel with the given identifier.
description: Returns the ItemModel with the given identifier.
deprecated:
removed_in: 5.0.0
why: This module has been moved to the L(new vmware.vmware collection,https://forum.ansible.com/t/5880)
alternative: Use M(vmware.vmware.content_library_item_info) instead.
options:
library_id:
description:
Expand Down

0 comments on commit 4090b9f

Please sign in to comment.