Skip to content

Commit

Permalink
Merge pull request #1621 from grycap/devel
Browse files Browse the repository at this point in the history
Use disk in resize
  • Loading branch information
micafer authored Oct 28, 2024
2 parents 08b8ac4 + 83deeb9 commit ff818b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions IM/connectors/CloudConnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,11 +675,15 @@ def resize_vm_radl(self, vm, radl):
if new_gpu:
orig_system.delValue('gpu.count')
orig_system.addFeature(new_gpu)
new_disk = radl.systems[0].getFeature('disks.free_size')
if new_disk:
orig_system.delValue('disks.free_size')
orig_system.addFeature(new_disk)

if any([new_cpu, new_memory, instance_type, new_gpu]):
if any([new_cpu, new_memory, instance_type, new_gpu, new_disk]):
return orig_system
else:
self.log_debug("No memory nor cpu nor instance_type nor gpu specified. VM not resized.")
self.log_debug("No memory nor cpu nor instance_type nor gpu nor disk specified. VM not resized.")
return None

@staticmethod
Expand Down

0 comments on commit ff818b2

Please sign in to comment.