Skip to content

Commit

Permalink
send cpuHotAddEnabled and memoryHotAddEnabled to ReconfigVM_Task spec…
Browse files Browse the repository at this point in the history
…, so it can be changed in server model (#207)
  • Loading branch information
scambra authored and chris1984 committed Apr 16, 2019
1 parent a9c486d commit 57c97bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fog/vsphere/requests/compute/update_vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 57c97bb

Please sign in to comment.