added missing facts in container instance (#45380)
* returning tags in container instance facts * small fix
This commit is contained in:
parent
0f7ef141ad
commit
6d0b0f8338
1 changed files with 6 additions and 1 deletions
|
@ -140,6 +140,10 @@ container_groups:
|
|||
returned: always
|
||||
type: list
|
||||
sample: [ 80, 81 ]
|
||||
tags:
|
||||
description: Tags assigned to the resource. Dictionary of string:string pairs.
|
||||
type: dict
|
||||
sample: { "tag1": "abc" }
|
||||
'''
|
||||
|
||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||
|
@ -267,7 +271,8 @@ class AzureRMContainerInstanceFacts(AzureRMModuleBase):
|
|||
'ip_address': 'public' if d['ip_address']['type'] == 'Public' else 'none',
|
||||
'ports': ports,
|
||||
'location': d['location'],
|
||||
'containers': containers
|
||||
'containers': containers,
|
||||
'tags': d.get('tags', None)
|
||||
}
|
||||
return d
|
||||
|
||||
|
|
Loading…
Reference in a new issue