mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-18 16:31:26 -07:00
manageiq_policies: deprecate list state (#5721)
* manageiq_policies: deprecate list state * add changelog fragment
This commit is contained in:
parent
2fc7baecf8
commit
28969c61ad
7 changed files with 18 additions and 6 deletions
|
@ -27,7 +27,10 @@ options:
|
|||
description:
|
||||
- C(absent) - policy_profiles should not exist,
|
||||
- C(present) - policy_profiles should exist,
|
||||
- C(list) - list current policy_profiles and policies.
|
||||
- >
|
||||
C(list) - list current policy_profiles and policies.
|
||||
This state is deprecated and will be removed 8.0.0.
|
||||
Please use the module M(community.general.manageiq_policies_info) instead.
|
||||
choices: ['absent', 'present', 'list']
|
||||
default: 'present'
|
||||
policy_profiles:
|
||||
|
@ -163,6 +166,13 @@ def main():
|
|||
resource_name = module.params['resource_name']
|
||||
state = module.params['state']
|
||||
|
||||
if state == "list":
|
||||
module.deprecate(
|
||||
'The value "list" for "state" is deprecated. Please use community.general.manageiq_policies_info instead.',
|
||||
version='8.0.0',
|
||||
collection_name='community.general'
|
||||
)
|
||||
|
||||
# get the action and resource type
|
||||
action = actions[state]
|
||||
resource_type = manageiq_entities()[resource_type_key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue