mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
add ovirt_disk check mode (#53625)
This commit is contained in:
parent
48098ba688
commit
b187e5a5c0
1 changed files with 8 additions and 7 deletions
|
@ -689,6 +689,7 @@ def main():
|
||||||
ret['changed'] = ret['changed'] or downloaded
|
ret['changed'] = ret['changed'] or downloaded
|
||||||
|
|
||||||
# Disk sparsify, only if disk is of image type:
|
# Disk sparsify, only if disk is of image type:
|
||||||
|
if not module.check_mode:
|
||||||
disk = disks_service.disk_service(module.params['id']).get()
|
disk = disks_service.disk_service(module.params['id']).get()
|
||||||
if disk.storage_type == otypes.DiskStorageType.IMAGE:
|
if disk.storage_type == otypes.DiskStorageType.IMAGE:
|
||||||
ret = disks_module.action(
|
ret = disks_module.action(
|
||||||
|
|
Loading…
Reference in a new issue