azure_rm_rg_info: fix KeyError: 'ansible_facts' (#66729)
* azure_rm_rg_info: fix KeyError: 'ansible_facts' Fix facts for using old azure_rm_resourcegroup_facts, closes #66727 * fix intendation
This commit is contained in:
parent
ff0576802f
commit
569f0cf808
1 changed files with 3 additions and 1 deletions
|
@ -183,7 +183,9 @@ class AzureRMResourceGroupInfo(AzureRMModuleBase):
|
|||
item['resources'] = self.list_by_rg(item['name'])
|
||||
|
||||
if is_old_facts:
|
||||
self.results['ansible_facts']['azure_resourcegroups'] = result
|
||||
self.results['ansible_facts'] = dict(
|
||||
azure_resourcegroups=result
|
||||
)
|
||||
self.results['resourcegroups'] = result
|
||||
|
||||
return self.results
|
||||
|
|
Loading…
Reference in a new issue