mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1163 from kid0m4n/vsphere_power_on
Correct the handling of the power_on option for vsphere clone_vm request
This commit is contained in:
commit
f5d9980c6b
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ module Fog
|
||||||
end
|
end
|
||||||
# And the clone specification
|
# And the clone specification
|
||||||
clone_spec = RbVmomi::VIM.VirtualMachineCloneSpec(:location => relocation_spec,
|
clone_spec = RbVmomi::VIM.VirtualMachineCloneSpec(:location => relocation_spec,
|
||||||
:powerOn => options['power_on'] || true,
|
:powerOn => options.has_key?('power_on') ? options['power_on'] : true,
|
||||||
:template => false)
|
:template => false)
|
||||||
task = vm_mob_ref.CloneVM_Task(:folder => vm_mob_ref.parent, :name => options['name'], :spec => clone_spec)
|
task = vm_mob_ref.CloneVM_Task(:folder => vm_mob_ref.parent, :name => options['name'], :spec => clone_spec)
|
||||||
# Waiting for the VM to complete allows us to get the VirtulMachine
|
# Waiting for the VM to complete allows us to get the VirtulMachine
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue