mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Rename memset_*_facts to memset_*_info (#57030)
* Rename memset_*_facts to memset_*_info * Add changelog.
This commit is contained in:
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()
|
||||
Reference in New Issue
Block a user