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
|
returned: always
|
||||||
type: list
|
type: list
|
||||||
sample: [ 80, 81 ]
|
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
|
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',
|
'ip_address': 'public' if d['ip_address']['type'] == 'Public' else 'none',
|
||||||
'ports': ports,
|
'ports': ports,
|
||||||
'location': d['location'],
|
'location': d['location'],
|
||||||
'containers': containers
|
'containers': containers,
|
||||||
|
'tags': d.get('tags', None)
|
||||||
}
|
}
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue