mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
adjusting curated response format, notification of raw format depreciation. (#43587)
This commit is contained in:
parent
f9d4e4d396
commit
0a9c58f866
2 changed files with 7 additions and 2 deletions
|
@ -38,6 +38,7 @@ options:
|
|||
- If C(raw) is selected information will be returned in raw format from Azure Python SDK.
|
||||
- If C(curated) is selected the structure will be identical to input parameters of azure_rm_virtualmachine_scaleset module.
|
||||
- In Ansible 2.5 and lower facts are always returned in raw format.
|
||||
- Please note that this option will be deprecated in 2.10 when curated format will become the only supported format.
|
||||
default: 'raw'
|
||||
choices:
|
||||
- 'curated'
|
||||
|
@ -70,7 +71,7 @@ EXAMPLES = '''
|
|||
'''
|
||||
|
||||
RETURN = '''
|
||||
azure_vmss:
|
||||
vmss:
|
||||
description: List of virtual machine scale sets
|
||||
returned: always
|
||||
type: complex
|
||||
|
@ -345,6 +346,10 @@ class AzureRMVirtualMachineScaleSetFacts(AzureRMModuleBase):
|
|||
|
||||
self.results['ansible_facts']['azure_vmss'][index] = updated
|
||||
|
||||
# proper result format we want to support in the future
|
||||
# dropping 'ansible_facts' and shorter name 'vmss'
|
||||
self.results['vmss'] = self.results['ansible_facts']['azure_vmss']
|
||||
|
||||
return self.results
|
||||
|
||||
def get_item(self):
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
|
||||
- name: Get scaleset body
|
||||
set_fact:
|
||||
body: "{{ output_scaleset.ansible_facts.azure_vmss[0] }}"
|
||||
body: "{{ output_scaleset.vmss[0] }}"
|
||||
|
||||
- name: Try to update VMSS using output as input
|
||||
azure_rm_virtualmachine_scaleset:
|
||||
|
|
Loading…
Reference in a new issue