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
|
@ -198,7 +198,7 @@ from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from msrestazure.azure_exceptions import CloudError
|
from msrestazure.azure_exceptions import CloudError
|
||||||
from msrestazure.azure_operation import AzureOperationPoller
|
from msrest.polling import LROPoller
|
||||||
from azure.mgmt.sql import SqlManagementClient
|
from azure.mgmt.sql import SqlManagementClient
|
||||||
from msrest.serialization import Model
|
from msrest.serialization import Model
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -432,7 +432,7 @@ class AzureRMDatabases(AzureRMModuleBase):
|
||||||
server_name=self.server_name,
|
server_name=self.server_name,
|
||||||
database_name=self.name,
|
database_name=self.name,
|
||||||
parameters=self.parameters)
|
parameters=self.parameters)
|
||||||
if isinstance(response, AzureOperationPoller):
|
if isinstance(response, LROPoller):
|
||||||
response = self.get_poller_result(response)
|
response = self.get_poller_result(response)
|
||||||
|
|
||||||
except CloudError as exc:
|
except CloudError as exc:
|
||||||
|
|
|
@ -82,7 +82,7 @@ from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from msrestazure.azure_exceptions import CloudError
|
from msrestazure.azure_exceptions import CloudError
|
||||||
from msrestazure.azure_operation import AzureOperationPoller
|
from msrest.polling import LROPoller
|
||||||
from azure.mgmt.sql import SqlManagementClient
|
from azure.mgmt.sql import SqlManagementClient
|
||||||
from msrest.serialization import Model
|
from msrest.serialization import Model
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -215,7 +215,7 @@ class AzureRMFirewallRules(AzureRMModuleBase):
|
||||||
firewall_rule_name=self.name,
|
firewall_rule_name=self.name,
|
||||||
start_ip_address=self.start_ip_address,
|
start_ip_address=self.start_ip_address,
|
||||||
end_ip_address=self.end_ip_address)
|
end_ip_address=self.end_ip_address)
|
||||||
if isinstance(response, AzureOperationPoller):
|
if isinstance(response, LROPoller):
|
||||||
response = self.get_poller_result(response)
|
response = self.get_poller_result(response)
|
||||||
|
|
||||||
except CloudError as exc:
|
except CloudError as exc:
|
||||||
|
|
|
@ -104,7 +104,7 @@ from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from msrestazure.azure_exceptions import CloudError
|
from msrestazure.azure_exceptions import CloudError
|
||||||
from msrestazure.azure_operation import AzureOperationPoller
|
from msrest.polling import LROPoller
|
||||||
from azure.mgmt.sql import SqlManagementClient
|
from azure.mgmt.sql import SqlManagementClient
|
||||||
from msrest.serialization import Model
|
from msrest.serialization import Model
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
@ -106,7 +106,7 @@ from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from msrestazure.azure_exceptions import CloudError
|
from msrestazure.azure_exceptions import CloudError
|
||||||
from msrestazure.azure_operation import AzureOperationPoller
|
from msrest.polling import LROPoller
|
||||||
from azure.mgmt.sql import SqlManagementClient
|
from azure.mgmt.sql import SqlManagementClient
|
||||||
from msrest.serialization import Model
|
from msrest.serialization import Model
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -272,7 +272,7 @@ class AzureRMServers(AzureRMModuleBase):
|
||||||
response = self.sql_client.servers.create_or_update(self.resource_group,
|
response = self.sql_client.servers.create_or_update(self.resource_group,
|
||||||
self.name,
|
self.name,
|
||||||
self.parameters)
|
self.parameters)
|
||||||
if isinstance(response, AzureOperationPoller):
|
if isinstance(response, LROPoller):
|
||||||
response = self.get_poller_result(response)
|
response = self.get_poller_result(response)
|
||||||
|
|
||||||
except CloudError as exc:
|
except CloudError as exc:
|
||||||
|
|
|
@ -114,7 +114,6 @@ from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from msrestazure.azure_exceptions import CloudError
|
from msrestazure.azure_exceptions import CloudError
|
||||||
from msrestazure.azure_operation import AzureOperationPoller
|
|
||||||
from azure.mgmt.sql import SqlManagementClient
|
from azure.mgmt.sql import SqlManagementClient
|
||||||
from msrest.serialization import Model
|
from msrest.serialization import Model
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
@ -17,7 +17,7 @@ azure-mgmt-network==1.7.1
|
||||||
azure-mgmt-nspkg==2.0.0
|
azure-mgmt-nspkg==2.0.0
|
||||||
azure-mgmt-rdbms==1.4.1
|
azure-mgmt-rdbms==1.4.1
|
||||||
azure-mgmt-resource==1.2.2
|
azure-mgmt-resource==1.2.2
|
||||||
azure-mgmt-sql==0.7.1
|
azure-mgmt-sql==0.10.0
|
||||||
azure-mgmt-storage==1.5.0
|
azure-mgmt-storage==1.5.0
|
||||||
azure-mgmt-trafficmanager==0.50.0
|
azure-mgmt-trafficmanager==0.50.0
|
||||||
azure-mgmt-web==0.32.0
|
azure-mgmt-web==0.32.0
|
||||||
|
|
|
@ -17,7 +17,7 @@ azure-mgmt-network==1.7.1
|
||||||
azure-mgmt-nspkg==2.0.0
|
azure-mgmt-nspkg==2.0.0
|
||||||
azure-mgmt-rdbms==1.4.1
|
azure-mgmt-rdbms==1.4.1
|
||||||
azure-mgmt-resource==1.2.2
|
azure-mgmt-resource==1.2.2
|
||||||
azure-mgmt-sql==0.7.1
|
azure-mgmt-sql==0.10.0
|
||||||
azure-mgmt-storage==1.5.0
|
azure-mgmt-storage==1.5.0
|
||||||
azure-mgmt-trafficmanager==0.50.0
|
azure-mgmt-trafficmanager==0.50.0
|
||||||
azure-mgmt-web==0.32.0
|
azure-mgmt-web==0.32.0
|
||||||
|
|
Loading…
Reference in a new issue