added missing facts in container instance (#45380)

* returning tags in container instance facts

* small fix
This commit is contained in:
Zim Kalinowski 2018-09-10 13:10:40 +08:00 committed by ansibot
parent 0f7ef141ad
commit 6d0b0f8338

View file

@ -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