From c5edffcdb8042f041eee41e2f11ccd2e4567e3ee Mon Sep 17 00:00:00 2001 From: zikalino Date: Mon, 25 Mar 2019 09:15:30 +0800 Subject: [PATCH] renaming dtl facts to info --- ...b_facts.py => azure_rm_devtestlab_info.py} | 8 +++---- ...=> azure_rm_devtestlabarmtemplate_info.py} | 4 ++-- ...py => azure_rm_devtestlabartifact_info.py} | 4 ++-- ...azure_rm_devtestlabartifactsource_info.py} | 4 ++-- ...azure_rm_devtestlabvirtualmachine_info.py} | 4 ++-- ...azure_rm_devtestlabvirtualnetwork_info.py} | 6 ++--- .../azure_rm_devtestlab/tasks/main.yml | 24 +++++++++---------- 7 files changed, 27 insertions(+), 27 deletions(-) rename lib/ansible/modules/cloud/azure/{azure_rm_devtestlab_facts.py => azure_rm_devtestlab_info.py} (98%) rename lib/ansible/modules/cloud/azure/{azure_rm_devtestlabarmtemplate_facts.py => azure_rm_devtestlabarmtemplate_info.py} (98%) rename lib/ansible/modules/cloud/azure/{azure_rm_devtestlabartifact_facts.py => azure_rm_devtestlabartifact_info.py} (98%) rename lib/ansible/modules/cloud/azure/{azure_rm_devtestlabartifactsource_facts.py => azure_rm_devtestlabartifactsource_info.py} (98%) rename lib/ansible/modules/cloud/azure/{azure_rm_devtestlabvirtualmachine_facts.py => azure_rm_devtestlabvirtualmachine_info.py} (99%) rename lib/ansible/modules/cloud/azure/{azure_rm_devtestlabvirtualnetwork_facts.py => azure_rm_devtestlabvirtualnetwork_info.py} (97%) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_devtestlab_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_devtestlab_info.py similarity index 98% rename from lib/ansible/modules/cloud/azure/azure_rm_devtestlab_facts.py rename to lib/ansible/modules/cloud/azure/azure_rm_devtestlab_info.py index a19f1da18e9..8cd07ea4b1f 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_devtestlab_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_devtestlab_info.py @@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', DOCUMENTATION = ''' --- -module: azure_rm_devtestlab_facts +module: azure_rm_devtestlab_info version_added: "2.8" short_description: Get Azure DevTest Lab facts. description: @@ -41,14 +41,14 @@ author: EXAMPLES = ''' - name: List instances of DevTest Lab by resource group - azure_rm_devtestlab_facts: + azure_rm_devtestlab_info: resource_group: testrg - name: List instances of DevTest Lab in subscription - azure_rm_devtestlab_facts: + azure_rm_devtestlab_info: - name: Get instance of DevTest Lab - azure_rm_devtestlab_facts: + azure_rm_devtestlab_info: resource_group: testrg name: testlab ''' diff --git a/lib/ansible/modules/cloud/azure/azure_rm_devtestlabarmtemplate_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_devtestlabarmtemplate_info.py similarity index 98% rename from lib/ansible/modules/cloud/azure/azure_rm_devtestlabarmtemplate_facts.py rename to lib/ansible/modules/cloud/azure/azure_rm_devtestlabarmtemplate_info.py index 81698ccdd32..e98ea5da8d2 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_devtestlabarmtemplate_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_devtestlabarmtemplate_info.py @@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', DOCUMENTATION = ''' --- -module: azure_rm_devtestlabarmtemplate_facts +module: azure_rm_devtestlabarmtemplate_info version_added: "2.8" short_description: Get Azure DevTest Lab ARM Template facts. description: @@ -48,7 +48,7 @@ author: EXAMPLES = ''' - name: Get information on DevTest Lab ARM Template - azure_rm_devtestlabarmtemplate_facts: + azure_rm_devtestlabarmtemplate_info: resource_group: myResourceGroup lab_name: myLab artifact_source_name: public environment repo diff --git a/lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifact_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifact_info.py similarity index 98% rename from lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifact_facts.py rename to lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifact_info.py index f28dcbaea41..64c54a93e2d 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifact_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifact_info.py @@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', DOCUMENTATION = ''' --- -module: azure_rm_devtestlabartifact_facts +module: azure_rm_devtestlabartifact_info version_added: "2.8" short_description: Get Azure DevTest Lab Artifact facts. description: @@ -48,7 +48,7 @@ author: EXAMPLES = ''' - name: Get instance of DevTest Lab Artifact - azure_rm_devtestlabartifact_facts: + azure_rm_devtestlabartifact_info: resource_group: myResourceGroup lab_name: myLab artifact_source_name: myArtifactSource diff --git a/lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifactsource_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifactsource_info.py similarity index 98% rename from lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifactsource_facts.py rename to lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifactsource_info.py index 5fad2de3f62..0f46c948bb3 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifactsource_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifactsource_info.py @@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', DOCUMENTATION = ''' --- -module: azure_rm_devtestlabartifactsource_facts +module: azure_rm_devtestlabartifactsource_info version_added: "2.8" short_description: Get Azure DevTest Lab Artifact Source facts. description: @@ -47,7 +47,7 @@ author: EXAMPLES = ''' - name: Get instance of DevTest Lab Artifact Source - azure_rm_devtestlabartifactsource_facts: + azure_rm_devtestlabartifactsource_info: resource_group: myResourceGroup lab_name: myLab name: myArtifactSource diff --git a/lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualmachine_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualmachine_info.py similarity index 99% rename from lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualmachine_facts.py rename to lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualmachine_info.py index 450ff459f66..21a7af2baa0 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualmachine_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualmachine_info.py @@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', DOCUMENTATION = ''' --- -module: azure_rm_devtestlabvirtualmachine_facts +module: azure_rm_devtestlabvirtualmachine_info version_added: "2.8" short_description: Get Azure DevTest Lab Virtual Machine facts. description: @@ -47,7 +47,7 @@ author: EXAMPLES = ''' - name: Get instance of DTL Virtual Machine - azure_rm_devtestlabvirtualmachine_facts: + azure_rm_devtestlabvirtualmachine_info: resource_group: myResourceGroup lab_name: myLab name: myVm diff --git a/lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualnetwork_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualnetwork_info.py similarity index 97% rename from lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualnetwork_facts.py rename to lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualnetwork_info.py index 2a630f0280c..d0f03205a22 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualnetwork_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualnetwork_info.py @@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1', DOCUMENTATION = ''' --- -module: azure_rm_devtestlabvirtualnetwork_facts +module: azure_rm_devtestlabvirtualnetwork_info version_added: "2.8" short_description: Get Azure DevTest Lab Virtual Network facts. description: @@ -44,13 +44,13 @@ author: EXAMPLES = ''' - name: Get instance of DevTest Lab Virtual Network - azure_rm_devtestlabvirtualnetwork_facts: + azure_rm_devtestlabvirtualnetwork_info: resource_group: myResourceGroup lab_name: myLab name: myVirtualNetwork - name: List all Virtual Networks in DevTest Lab - azure_rm_devtestlabvirtualnetwork_facts: + azure_rm_devtestlabvirtualnetwork_info: resource_group: myResourceGroup lab_name: myLab name: myVirtualNetwork diff --git a/test/integration/targets/azure_rm_devtestlab/tasks/main.yml b/test/integration/targets/azure_rm_devtestlab/tasks/main.yml index c29ab229801..5d6b4645522 100644 --- a/test/integration/targets/azure_rm_devtestlab/tasks/main.yml +++ b/test/integration/targets/azure_rm_devtestlab/tasks/main.yml @@ -61,7 +61,7 @@ - output.changed - name: List DevTest Lab in a resource group - azure_rm_devtestlab_facts: + azure_rm_devtestlab_info: resource_group: "{{ resource_group }}" register: output_lab - name: Assert that facts are returned @@ -78,7 +78,7 @@ - output_lab.labs[0]['vault_name'] != None - name: Get DevTest Lab facts - azure_rm_devtestlab_facts: + azure_rm_devtestlab_info: resource_group: "{{ resource_group }}" name: "{{ lab_name }}" register: output_lab @@ -263,7 +263,7 @@ - output.changed - name: Get DevTest Lab Virtual Network facts - azure_rm_devtestlabvirtualnetwork_facts: + azure_rm_devtestlabvirtualnetwork_info: resource_group: "{{ resource_group }}" lab_name: "{{ lab_name }}" name: "{{ vn_name }}" @@ -281,7 +281,7 @@ - output.virtualnetworks[0]['provisioning_state'] != None - name: List all Virtual Networks in DevTest Lab - azure_rm_devtestlabvirtualnetwork_facts: + azure_rm_devtestlabvirtualnetwork_info: resource_group: "{{ resource_group }}" lab_name: "{{ lab_name }}" register: output @@ -458,7 +458,7 @@ when: "github_token | length > 0" - name: Get Facts of DTL Virtual Machine - azure_rm_devtestlabvirtualmachine_facts: + azure_rm_devtestlabvirtualmachine_info: resource_group: "{{ resource_group }}" lab_name: "{{ lab_name }}" name: "{{ vm_name }}" @@ -488,7 +488,7 @@ when: "github_token | length > 0" - name: List Facts of DTL Virtual Machine - azure_rm_devtestlabvirtualmachine_facts: + azure_rm_devtestlabvirtualmachine_info: resource_group: "{{ resource_group }}" lab_name: "{{ lab_name }}" register: output_vm @@ -516,7 +516,7 @@ - name: List all artifact sources - azure_rm_devtestlabartifactsource_facts: + azure_rm_devtestlabartifactsource_info: resource_group: "{{ resource_group }}" lab_name: "{{ lab_name }}" register: output @@ -537,7 +537,7 @@ - output.artifactsources | length >= 2 - name: Get artifacts source facts - azure_rm_devtestlabartifactsource_facts: + azure_rm_devtestlabartifactsource_info: resource_group: "{{ resource_group }}" lab_name: "{{ lab_name }}" name: public repo @@ -572,7 +572,7 @@ when: "github_token | length > 0" - name: List ARM Template facts - azure_rm_devtestlabarmtemplate_facts: + azure_rm_devtestlabarmtemplate_info: resource_group: "{{ resource_group }}" lab_name: "{{ lab_name }}" artifact_source_name: "public environment repo" @@ -591,7 +591,7 @@ - "output.armtemplates | length > 1" - name: Get ARM Template facts - azure_rm_devtestlabarmtemplate_facts: + azure_rm_devtestlabarmtemplate_info: resource_group: "{{ resource_group }}" lab_name: "{{ lab_name }}" artifact_source_name: "public environment repo" @@ -613,7 +613,7 @@ - name: Get Artifact facts - azure_rm_devtestlabartifact_facts: + azure_rm_devtestlabartifact_info: resource_group: "{{ resource_group }}" lab_name: "{{ lab_name }}" artifact_source_name: "public repo" @@ -635,7 +635,7 @@ - "output.artifacts | length > 1" - name: Get Artifact facts - azure_rm_devtestlabartifact_facts: + azure_rm_devtestlabartifact_info: resource_group: "{{ resource_group }}" lab_name: "{{ lab_name }}" artifact_source_name: "public repo"