rename modules azure_rm_..._facts to azure_rm_..._info (#57395)

pull/57315/head
smile37773 6 years ago committed by Zim Kalinowski
parent 870d8bf10b
commit c6097a268c

@ -0,0 +1,2 @@
minor_changes:
- The ``azure_rm_resourcegroup_facts`` module has been renamed to ``azure_rm_resourcegroup_info``.

@ -78,7 +78,7 @@ Noteworthy module changes
* 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>`.
* The ``azure_rm_resourcegroup_facts`` module was renamed to :ref:`azure_rm_aks_info <azure_rm_resourcegroup_info_module>`.
Plugins
=======

@ -16,9 +16,9 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_resourcegroup_facts
module: azure_rm_resourcegroup_info
version_added: "2.1"
version_added: "2.9"
short_description: Get resource group facts.
@ -49,20 +49,20 @@ author:
EXAMPLES = '''
- name: Get facts for one resource group
azure_rm_resourcegroup_facts:
azure_rm_resourcegroup_info:
name: myResourceGroup
- name: Get facts for all resource groups
azure_rm_resourcegroup_facts:
azure_rm_resourcegroup_info:
- name: Get facts by tags
azure_rm_resourcegroup_facts:
azure_rm_resourcegroup_info:
tags:
- testing
- foo:bar
- name: Get facts for one resource group including resources it contains
azure_rm_resourcegroup_facts:
azure_rm_resourcegroup_info:
name: myResourceGroup
list_resources: yes
'''
@ -133,7 +133,7 @@ from ansible.module_utils.azure_rm_common import AzureRMModuleBase
AZURE_OBJECT_CLASS = 'ResourceGroup'
class AzureRMResourceGroupFacts(AzureRMModuleBase):
class AzureRMResourceGroupInfo(AzureRMModuleBase):
def __init__(self):
@ -153,7 +153,7 @@ class AzureRMResourceGroupFacts(AzureRMModuleBase):
self.tags = None
self.list_resources = None
super(AzureRMResourceGroupFacts, self).__init__(self.module_arg_spec,
super(AzureRMResourceGroupInfo, self).__init__(self.module_arg_spec,
supports_tags=False,
facts_module=True)
@ -218,7 +218,7 @@ class AzureRMResourceGroupFacts(AzureRMModuleBase):
def main():
AzureRMResourceGroupFacts()
AzureRMResourceGroupInfo()
if __name__ == '__main__':

@ -1,5 +1,5 @@
- name: Get resource group
azure_rm_resourcegroup_facts:
azure_rm_resourcegroup_info:
name: "{{ resource_group }}"
- name: Create resource group
@ -45,7 +45,7 @@
- output.state.tags.foo == 'bar'
- name: Gather facts by tags
azure_rm_resourcegroup_facts:
azure_rm_resourcegroup_info:
tags:
- testing
- foo:bar
@ -114,7 +114,7 @@
register: output
- name: Gather facts for a resource group
azure_rm_resourcegroup_facts:
azure_rm_resourcegroup_info:
name: "{{ resource_group }}"
register: output
@ -122,7 +122,7 @@
that: azure_resourcegroups | length == 1
- name: Gather facts for all resource groups
azure_rm_resourcegroup_facts:
azure_rm_resourcegroup_info:
register: output
- assert:

Loading…
Cancel
Save