mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
fix reboot guest in vsphere to reboot rather than shutdown guest
This commit is contained in:
parent
d001b8a168
commit
850ab086bc
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ module Fog
|
|||
'AvailabilityZones' => availability_zones,
|
||||
'Subnets' => options[:subnet_ids],
|
||||
'Scheme' => options[:scheme].nil? ? 'internet-facing' : options[:scheme],
|
||||
'SecurityGroups' => options[:security_groups],
|
||||
'SecurityGroups' => options[:security_groups].nil? ? [] : options[:security_groups],
|
||||
'CanonicalHostedZoneName' => '',
|
||||
'CanonicalHostedZoneNameID' => '',
|
||||
'CreatedTime' => Time.now,
|
||||
|
|
|
@ -15,7 +15,7 @@ module Fog
|
|||
task.wait_for_completion
|
||||
{ 'task_state' => task.info.result, 'reboot_type' => 'reset_power' }
|
||||
else
|
||||
vm_mob_ref.ShutdownGuest
|
||||
vm_mob_ref.RebootGuest
|
||||
{ 'task_state' => "running", 'reboot_type' => 'reboot_guest' }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue