mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Correct the handling of the power_on option
This commit is contained in:
parent
ae9c353ebe
commit
5287e8b0fb
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ module Fog
|
|||
end
|
||||
# And the clone specification
|
||||
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)
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue