mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Fix activate of the disks in ovirt_vm and ovirt_disk modules (#49762)
* ovirt_disk: Add activate parameter * ovirt_vm: Fix waiting on lun disks Signed-off-by: Ondra Machacek <omachace@redhat.com>
This commit is contained in:
parent
f431e5b0e2
commit
e733d6e557
2 changed files with 9 additions and 3 deletions
|
@ -1406,7 +1406,7 @@ class VmsModule(BaseModule):
|
|||
disk_service = disks_service.disk_service(da.disk.id)
|
||||
wait(
|
||||
service=disk_service,
|
||||
condition=lambda disk: disk.status == otypes.DiskStatus.OK,
|
||||
condition=lambda disk: disk.status == otypes.DiskStatus.OK if disk.storage_type == otypes.DiskStorageType.IMAGE else True,
|
||||
wait=self.param('wait'),
|
||||
timeout=self.param('timeout'),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue