mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
parent
887456ab8e
commit
02f66b9369
38 changed files with 865 additions and 888 deletions
|
@ -1005,8 +1005,9 @@ def reconfigure_vm(vsphere_client, vm, module, esxi, resource_pool, cluster_name
|
|||
# Make sure the new disk size is higher than the current value
|
||||
dev = dev_list[disk_num]
|
||||
if disksize < int(dev.capacityInKB):
|
||||
vsphere_client.disconnect()
|
||||
module.fail_json(msg="Error in '%s' definition. New size needs to be higher than the current value (%s GB)." % (disk, int(dev.capacityInKB) / 1024 / 1024))
|
||||
vsphere_client.disconnect()
|
||||
module.fail_json(msg="Error in '%s' definition. New size needs to be higher than the current value (%s GB)." %
|
||||
(disk, int(dev.capacityInKB) / 1024 / 1024))
|
||||
|
||||
# Set the new disk size
|
||||
elif disksize > int(dev.capacityInKB):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue