Skip to content

Commit ff818b2

Browse files
authored
Merge pull request #1621 from grycap/devel
Use disk in resize
2 parents 08b8ac4 + 83deeb9 commit ff818b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

IM/connectors/CloudConnector.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -675,11 +675,15 @@ def resize_vm_radl(self, vm, radl):
675675
if new_gpu:
676676
orig_system.delValue('gpu.count')
677677
orig_system.addFeature(new_gpu)
678+
new_disk = radl.systems[0].getFeature('disks.free_size')
679+
if new_disk:
680+
orig_system.delValue('disks.free_size')
681+
orig_system.addFeature(new_disk)
678682

679-
if any([new_cpu, new_memory, instance_type, new_gpu]):
683+
if any([new_cpu, new_memory, instance_type, new_gpu, new_disk]):
680684
return orig_system
681685
else:
682-
self.log_debug("No memory nor cpu nor instance_type nor gpu specified. VM not resized.")
686+
self.log_debug("No memory nor cpu nor instance_type nor gpu nor disk specified. VM not resized.")
683687
return None
684688

685689
@staticmethod

0 commit comments

Comments
 (0)