mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
upgrading azure-mgmt-compute to the latest (#47601)
* upgrading azure-mgmt-compute to the latest
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user