mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 21:31:26 -07:00
azure_rm_image: fix creation of image with data disks (#49394)
This commit is contained in:
parent
15c5dbcc20
commit
79c0e30c5a
2 changed files with 18 additions and 1 deletions
|
@ -251,7 +251,7 @@ class AzureRMImage(AzureRMModuleBase):
|
|||
if blob_uri or disk or snapshot:
|
||||
snapshot_resource = self.compute_models.SubResource(id=snapshot) if snapshot else None
|
||||
managed_disk = self.compute_models.SubResource(id=disk) if disk else None
|
||||
return self.compute_models.ImageDataDisk(lun,
|
||||
return self.compute_models.ImageDataDisk(lun=lun,
|
||||
blob_uri=blob_uri,
|
||||
snapshot=snapshot_resource,
|
||||
managed_disk=managed_disk)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue