mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
upgrading azure-mgmt-compute to the latest (#47601)
* upgrading azure-mgmt-compute to the latest
This commit is contained in:
parent
60dcfc3a09
commit
406da7a568
7 changed files with 25 additions and 23 deletions
|
@ -290,7 +290,7 @@ class AzureRMManagedDisk(AzureRMModuleBase):
|
|||
|
||||
# prepare the data disk
|
||||
params = self.compute_models.ManagedDiskParameters(id=disk.get('id'), storage_account_type=disk.get('storage_account_type'))
|
||||
data_disk = self.compute_models.DataDisk(lun, self.compute_models.DiskCreateOptionTypes.attach, managed_disk=params)
|
||||
data_disk = self.compute_models.DataDisk(lun=lun, create_option=self.compute_models.DiskCreateOptionTypes.attach, managed_disk=params)
|
||||
vm.storage_profile.data_disks.append(data_disk)
|
||||
self._update_vm(vm_name, vm)
|
||||
|
||||
|
@ -321,7 +321,7 @@ class AzureRMManagedDisk(AzureRMModuleBase):
|
|||
disk_params['location'] = self.location
|
||||
disk_params['tags'] = self.tags
|
||||
if self.storage_account_type:
|
||||
storage_account_type = self.compute_models.DiskSku(self.storage_account_type)
|
||||
storage_account_type = self.compute_models.DiskSku(name=self.storage_account_type)
|
||||
disk_params['sku'] = storage_account_type
|
||||
disk_params['disk_size_gb'] = self.disk_size_gb
|
||||
# TODO: Add support for EncryptionSettings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue