mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
fixing container instance sanity & integration tests (#40774)
This commit is contained in:
committed by
Yunge Zhu
parent
bf5cd98a2b
commit
dde48560fb
@@ -50,6 +50,7 @@ options:
|
||||
choices:
|
||||
- public
|
||||
- none
|
||||
default: 'none'
|
||||
ports:
|
||||
description:
|
||||
- List of ports exposed within the container group.
|
||||
@@ -144,6 +145,7 @@ from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||
|
||||
try:
|
||||
from msrestazure.azure_exceptions import CloudError
|
||||
from msrestazure.azure_operation import AzureOperationPoller
|
||||
from azure.mgmt.containerinstance import ContainerInstanceManagementClient
|
||||
except ImportError:
|
||||
# This is handled in azure_rm_common
|
||||
@@ -382,6 +384,9 @@ class AzureRMContainerInstance(AzureRMModuleBase):
|
||||
container_group_name=self.name,
|
||||
container_group=parameters)
|
||||
|
||||
if isinstance(response, AzureOperationPoller):
|
||||
response = self.get_poller_result(response)
|
||||
|
||||
return response.as_dict()
|
||||
|
||||
def delete_containerinstance(self):
|
||||
|
||||
Reference in New Issue
Block a user