From 57c97bb17cbf99c5e6185a72c9d9a8f4354ec039 Mon Sep 17 00:00:00 2001 From: Sergio Cambra Date: Tue, 16 Apr 2019 17:15:32 +0200 Subject: [PATCH] send cpuHotAddEnabled and memoryHotAddEnabled to ReconfigVM_Task spec, so it can be changed in server model (#207) --- lib/fog/vsphere/requests/compute/update_vm.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/fog/vsphere/requests/compute/update_vm.rb b/lib/fog/vsphere/requests/compute/update_vm.rb index 9f7cbd96..5bb2a161 100644 --- a/lib/fog/vsphere/requests/compute/update_vm.rb +++ b/lib/fog/vsphere/requests/compute/update_vm.rb @@ -20,6 +20,10 @@ def update_vm(server) # Memory spec[:memoryMB] = attributes[:memory_mb] + # HotAdd + spec[:cpuHotAddEnabled] = attributes[:cpuHotAddEnabled] + spec[:memoryHotAddEnabled] = attributes[:memoryHotAddEnabled] + # Volumes device_change.concat(update_vm_volumes_specs(vm_mob_ref, server.volumes))