This commit is contained in:
Joseph Hall 2017-02-03 14:27:45 -07:00
parent 2ed2932387
commit ec57a39c00

View file

@ -647,7 +647,7 @@ def _manage_devices(devices, vm=None, container_ref=None):
if device.capacityInKB < size_kb:
# expand the disk
disk_spec = _edit_existing_hard_disk_helper(device, size_kb)
elif device.capacityInKB < size_kb:
elif device.capacityInKB > size_kb:
raise SaltCloudSystemExit(
'The specified disk size is smaller than the '
'size of the disk image. It must be equal to '