mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
manageiq_tags: deprecate list state (#5727)
* manageiq_tags: deprecate list state * add changelog fragment * add comment to sanity ignore files
This commit is contained in:
parent
6383c82328
commit
2ce3cf91b8
7 changed files with 18 additions and 17 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
deprecated_features:
|
||||||
|
- manageiq_tags - deprecate ``state=list`` in favour of using ``community.general.manageiq_tags_info`` (https://github.com/ansible-collections/community.general/pull/5727).
|
|
@ -27,7 +27,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- C(absent) - tags should not exist.
|
- C(absent) - tags should not exist.
|
||||||
- C(present) - tags should exist.
|
- C(present) - tags should exist.
|
||||||
- C(list) - list current tags.
|
- >
|
||||||
|
C(list) - list current tags.
|
||||||
|
This state is deprecated and will be removed 8.0.0.
|
||||||
|
Please use the module M(community.general.manageiq_tags_info) instead.
|
||||||
choices: ['absent', 'present', 'list']
|
choices: ['absent', 'present', 'list']
|
||||||
default: 'present'
|
default: 'present'
|
||||||
tags:
|
tags:
|
||||||
|
@ -103,17 +106,6 @@ EXAMPLES = '''
|
||||||
username: 'admin'
|
username: 'admin'
|
||||||
password: 'smartvm'
|
password: 'smartvm'
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
|
|
||||||
- name: List current tags for a provider in ManageIQ.
|
|
||||||
community.general.manageiq_tags:
|
|
||||||
state: list
|
|
||||||
resource_name: 'EngLab'
|
|
||||||
resource_type: 'provider'
|
|
||||||
manageiq_connection:
|
|
||||||
url: 'http://127.0.0.1:3000'
|
|
||||||
username: 'admin'
|
|
||||||
password: 'smartvm'
|
|
||||||
validate_certs: false
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
@ -155,6 +147,13 @@ def main():
|
||||||
resource_name = module.params['resource_name']
|
resource_name = module.params['resource_name']
|
||||||
state = module.params['state']
|
state = module.params['state']
|
||||||
|
|
||||||
|
if state == "list":
|
||||||
|
module.deprecate(
|
||||||
|
'The value "list" for "state" is deprecated. Please use community.general.manageiq_tags_info instead.',
|
||||||
|
version='8.0.0',
|
||||||
|
collection_name='community.general'
|
||||||
|
)
|
||||||
|
|
||||||
# get the action and resource type
|
# get the action and resource type
|
||||||
action = actions[state]
|
action = actions[state]
|
||||||
resource_type = manageiq_entities()[resource_type_key]
|
resource_type = manageiq_entities()[resource_type_key]
|
||||||
|
|
|
@ -15,7 +15,7 @@ plugins/modules/manageiq_provider.py validate-modules:doc-choices-do-not-match-s
|
||||||
plugins/modules/manageiq_provider.py validate-modules:doc-missing-type # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:doc-missing-type # missing docs on suboptions
|
||||||
plugins/modules/manageiq_provider.py validate-modules:parameter-type-not-in-doc # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:parameter-type-not-in-doc # missing docs on suboptions
|
||||||
plugins/modules/manageiq_provider.py validate-modules:undocumented-parameter # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:undocumented-parameter # missing docs on suboptions
|
||||||
plugins/modules/manageiq_tags.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/manageiq_tags.py validate-modules:parameter-state-invalid-choice # state=list - removed in 8.0.0
|
||||||
plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/parted.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/parted.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/puppet.py validate-modules:parameter-invalid # invalid alias - removed in 7.0.0
|
plugins/modules/puppet.py validate-modules:parameter-invalid # invalid alias - removed in 7.0.0
|
||||||
|
|
|
@ -10,7 +10,7 @@ plugins/modules/manageiq_provider.py validate-modules:doc-choices-do-not-match-s
|
||||||
plugins/modules/manageiq_provider.py validate-modules:doc-missing-type # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:doc-missing-type # missing docs on suboptions
|
||||||
plugins/modules/manageiq_provider.py validate-modules:parameter-type-not-in-doc # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:parameter-type-not-in-doc # missing docs on suboptions
|
||||||
plugins/modules/manageiq_provider.py validate-modules:undocumented-parameter # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:undocumented-parameter # missing docs on suboptions
|
||||||
plugins/modules/manageiq_tags.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/manageiq_tags.py validate-modules:parameter-state-invalid-choice # state=list - removed in 8.0.0
|
||||||
plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/parted.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/parted.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/puppet.py validate-modules:parameter-invalid # invalid alias - removed in 7.0.0
|
plugins/modules/puppet.py validate-modules:parameter-invalid # invalid alias - removed in 7.0.0
|
||||||
|
|
|
@ -10,7 +10,7 @@ plugins/modules/manageiq_provider.py validate-modules:doc-choices-do-not-match-s
|
||||||
plugins/modules/manageiq_provider.py validate-modules:doc-missing-type # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:doc-missing-type # missing docs on suboptions
|
||||||
plugins/modules/manageiq_provider.py validate-modules:parameter-type-not-in-doc # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:parameter-type-not-in-doc # missing docs on suboptions
|
||||||
plugins/modules/manageiq_provider.py validate-modules:undocumented-parameter # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:undocumented-parameter # missing docs on suboptions
|
||||||
plugins/modules/manageiq_tags.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/manageiq_tags.py validate-modules:parameter-state-invalid-choice # state=list - removed in 8.0.0
|
||||||
plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/parted.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/parted.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/puppet.py validate-modules:parameter-invalid # invalid alias - removed in 7.0.0
|
plugins/modules/puppet.py validate-modules:parameter-invalid # invalid alias - removed in 7.0.0
|
||||||
|
|
|
@ -11,7 +11,7 @@ plugins/modules/manageiq_provider.py validate-modules:doc-choices-do-not-match-s
|
||||||
plugins/modules/manageiq_provider.py validate-modules:doc-missing-type # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:doc-missing-type # missing docs on suboptions
|
||||||
plugins/modules/manageiq_provider.py validate-modules:parameter-type-not-in-doc # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:parameter-type-not-in-doc # missing docs on suboptions
|
||||||
plugins/modules/manageiq_provider.py validate-modules:undocumented-parameter # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:undocumented-parameter # missing docs on suboptions
|
||||||
plugins/modules/manageiq_tags.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/manageiq_tags.py validate-modules:parameter-state-invalid-choice # state=list - removed in 8.0.0
|
||||||
plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/parted.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/parted.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/puppet.py validate-modules:parameter-invalid # invalid alias - removed in 7.0.0
|
plugins/modules/puppet.py validate-modules:parameter-invalid # invalid alias - removed in 7.0.0
|
||||||
|
|
|
@ -11,7 +11,7 @@ plugins/modules/manageiq_provider.py validate-modules:doc-choices-do-not-match-s
|
||||||
plugins/modules/manageiq_provider.py validate-modules:doc-missing-type # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:doc-missing-type # missing docs on suboptions
|
||||||
plugins/modules/manageiq_provider.py validate-modules:parameter-type-not-in-doc # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:parameter-type-not-in-doc # missing docs on suboptions
|
||||||
plugins/modules/manageiq_provider.py validate-modules:undocumented-parameter # missing docs on suboptions
|
plugins/modules/manageiq_provider.py validate-modules:undocumented-parameter # missing docs on suboptions
|
||||||
plugins/modules/manageiq_tags.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/manageiq_tags.py validate-modules:parameter-state-invalid-choice # state=list - removed in 8.0.0
|
||||||
plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/osx_defaults.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/parted.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/parted.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/puppet.py validate-modules:parameter-invalid # invalid alias - removed in 7.0.0
|
plugins/modules/puppet.py validate-modules:parameter-invalid # invalid alias - removed in 7.0.0
|
||||||
|
|
Loading…
Reference in a new issue