我正在使用 vmomi gem 来使用 vsphere api。这是我所做的:-
....
new_extra_config = [{"softPowerOff"=>"true"}]
vm.ReconfigVM_Task(:spec => RbVmomi::VIM.VirtualMachineConfigSpec(:extraConfig => new_extra_config)).wait_for_completion
....
这会引发错误:-
root/usr/local/share/gems/gems/rbvmomi-1.8.2/lib/rbvmomi/basic_types.rb:105:in `block in initialize': unexpected property name softPowerOff (RuntimeError)
有人可以帮忙吗?