mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
fixing container instance sanity & integration tests (#40774)
This commit is contained in:
parent
bf5cd98a2b
commit
dde48560fb
5 changed files with 14 additions and 13 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue