|
|
|
@ -228,7 +228,7 @@ class AzureRMServers(AzureRMModuleBase):
|
|
|
|
|
elif key == "location":
|
|
|
|
|
self.parameters["location"] = kwargs[key]
|
|
|
|
|
elif key == "storage_mb":
|
|
|
|
|
self.parameters.setdefault("properties", {})["storage_mb"] = kwargs[key]
|
|
|
|
|
self.parameters.setdefault("properties", {}).setdefault("storage_profile", {})["storage_mb"] = kwargs[key]
|
|
|
|
|
elif key == "version":
|
|
|
|
|
self.parameters.setdefault("properties", {})["version"] = kwargs[key]
|
|
|
|
|
elif key == "enforce_ssl":
|
|
|
|
@ -320,9 +320,11 @@ class AzureRMServers(AzureRMModuleBase):
|
|
|
|
|
server_name=self.name,
|
|
|
|
|
parameters=self.parameters)
|
|
|
|
|
else:
|
|
|
|
|
response = self.mgmt_client.servers.update(resource_group_name=self.resource_group,
|
|
|
|
|
server_name=self.name,
|
|
|
|
|
parameters=self.parameters)
|
|
|
|
|
# structure of parameters for update must be changed
|
|
|
|
|
self.parameters.update(self.parameters.pop("properties", {}))
|
|
|
|
|
response = self.mysql_client.servers.update(resource_group_name=self.resource_group,
|
|
|
|
|
server_name=self.name,
|
|
|
|
|
parameters=self.parameters)
|
|
|
|
|
if isinstance(response, LROPoller):
|
|
|
|
|
response = self.get_poller_result(response)
|
|
|
|
|
|
|
|
|
|