Rename memset_*_facts to memset_*_info (#57030)
* Rename memset_*_facts to memset_*_info * Add changelog.
This commit is contained in:
parent
5162d21ea3
commit
7b40b569b2
12 changed files with 23 additions and 10 deletions
3
changelogs/fragments/57030-facts-info-rename.yaml
Normal file
3
changelogs/fragments/57030-facts-info-rename.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
minor_changes:
|
||||
- The ``memset_memstore_facts`` module has been renamed to ``memset_memstore_info``.
|
||||
- The ``memset_server_facts`` module has been renamed to ``memset_server_info``.
|
|
@ -75,6 +75,8 @@ Noteworthy module changes
|
|||
* The ``k8s_facts`` module was renamed to :ref:`k8s_info <k8s_info_module>`.
|
||||
* The ``bigip_device_facts`` module was renamed to :ref:`bigip_device_info <bigip_device_info_module>`.
|
||||
* The ``bigiq_device_facts`` module was renamed to :ref:`bigiq_device_info <bigiq_device_info_module>`.
|
||||
* The ``memset_memstore_facts`` module was renamed to :ref:`memset_memstore_info <memset_memstore_info_module>`.
|
||||
* The ``memset_server_facts`` module was renamed to :ref:`memset_server_info <memset_server_info_module>`.
|
||||
* The ``one_image_facts`` module was renamed to :ref:`one_image_info <one_image_info_module>`.
|
||||
|
||||
|
||||
|
|
1
lib/ansible/modules/cloud/memset/_memset_memstore_facts.py
Symbolic link
1
lib/ansible/modules/cloud/memset/_memset_memstore_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
memset_memstore_info.py
|
1
lib/ansible/modules/cloud/memset/_memset_server_facts.py
Symbolic link
1
lib/ansible/modules/cloud/memset/_memset_server_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
memset_server_info.py
|
|
@ -15,7 +15,7 @@ ANSIBLE_METADATA = {
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: memset_memstore_facts
|
||||
module: memset_memstore_info
|
||||
author: "Simon Weald (@glitchcrab)"
|
||||
version_added: "2.8"
|
||||
short_description: Retrieve Memstore product usage information.
|
||||
|
@ -24,6 +24,7 @@ notes:
|
|||
following minimum scope - I(memstore.usage).
|
||||
description:
|
||||
- Retrieve Memstore product usage information.
|
||||
- This module was called C(memset_memstore_facts) before Ansible 2.9. The usage did not change.
|
||||
options:
|
||||
api_key:
|
||||
required: true
|
||||
|
@ -37,7 +38,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: get usage for mstestyaa1
|
||||
memset_memstore_facts:
|
||||
memset_memstore_info:
|
||||
name: mstestyaa1
|
||||
api_key: 5eb86c9896ab03919abcf03857163741
|
||||
delegate_to: localhost
|
||||
|
@ -155,6 +156,8 @@ def main():
|
|||
),
|
||||
supports_check_mode=False
|
||||
)
|
||||
if module._name == 'memset_memstore_facts':
|
||||
module.deprecate("The 'memset_memstore_facts' module has been renamed to 'memset_memstore_info'", version='2.13')
|
||||
|
||||
# populate the dict with the user-provided vars.
|
||||
args = dict()
|
|
@ -15,7 +15,7 @@ ANSIBLE_METADATA = {
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: memset_server_facts
|
||||
module: memset_server_info
|
||||
author: "Simon Weald (@glitchcrab)"
|
||||
version_added: "2.8"
|
||||
short_description: Retrieve server information.
|
||||
|
@ -24,6 +24,7 @@ notes:
|
|||
following minimum scope - I(server.info).
|
||||
description:
|
||||
- Retrieve server information.
|
||||
- This module was called C(memset_server_facts) before Ansible 2.9. The usage did not change.
|
||||
options:
|
||||
api_key:
|
||||
required: true
|
||||
|
@ -37,7 +38,7 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: get details for testyaa1
|
||||
memset_server_facts:
|
||||
memset_server_info:
|
||||
name: testyaa1
|
||||
api_key: 5eb86c9896ab03919abcf03857163741
|
||||
delegate_to: localhost
|
||||
|
@ -280,6 +281,8 @@ def main():
|
|||
),
|
||||
supports_check_mode=False
|
||||
)
|
||||
if module._name == 'memset_server_facts':
|
||||
module.deprecate("The 'memset_server_facts' module has been renamed to 'memset_server_info'", version='2.13')
|
||||
|
||||
# populate the dict with the user-provided vars.
|
||||
args = dict()
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: query API with invalid API key
|
||||
memset_memstore_facts:
|
||||
memset_memstore_info:
|
||||
api_key: 'wa9aerahhie0eekee9iaphoorovooyia'
|
||||
name: 'mstestyaa1'
|
||||
ignore_errors: true
|
||||
|
@ -12,8 +12,8 @@
|
|||
- "'Memset API returned a 403 response (ApiErrorForbidden, Bad api_key)' in result.msg"
|
||||
- result is not successful
|
||||
|
||||
- name: request memstore facts
|
||||
memset_memstore_facts:
|
||||
- name: request memstore infos
|
||||
memset_memstore_info:
|
||||
api_key: "{{ api_key }}"
|
||||
name: 'mstestyaa1'
|
||||
register: result
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: query API with invalid API key
|
||||
memset_server_facts:
|
||||
memset_server_info:
|
||||
api_key: 'wa9aerahhie0eekee9iaphoorovooyia'
|
||||
name: 'testyaa1'
|
||||
ignore_errors: true
|
||||
|
@ -12,8 +12,8 @@
|
|||
- "'Memset API returned a 403 response (ApiErrorForbidden, Bad api_key)' in result.msg"
|
||||
- result is not successful
|
||||
|
||||
- name: request server facts
|
||||
memset_server_facts:
|
||||
- name: request server infos
|
||||
memset_server_info:
|
||||
api_key: "{{ api_key }}"
|
||||
name: 'testyaa1'
|
||||
register: result
|
Loading…
Reference in a new issue