mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
upgrading sql package to newest (#47544)
* upgrading sql package to newest * LROPOller
This commit is contained in:
parent
4cda7a7883
commit
1cb78209ae
7 changed files with 9 additions and 10 deletions
|
@ -106,7 +106,7 @@ from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
|||
|
||||
try:
|
||||
from msrestazure.azure_exceptions import CloudError
|
||||
from msrestazure.azure_operation import AzureOperationPoller
|
||||
from msrest.polling import LROPoller
|
||||
from azure.mgmt.sql import SqlManagementClient
|
||||
from msrest.serialization import Model
|
||||
except ImportError:
|
||||
|
@ -272,7 +272,7 @@ class AzureRMServers(AzureRMModuleBase):
|
|||
response = self.sql_client.servers.create_or_update(self.resource_group,
|
||||
self.name,
|
||||
self.parameters)
|
||||
if isinstance(response, AzureOperationPoller):
|
||||
if isinstance(response, LROPoller):
|
||||
response = self.get_poller_result(response)
|
||||
|
||||
except CloudError as exc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue