1
0
Fork 0
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:
Eric Stonfer 2012-08-07 12:20:57 -04:00
parent d001b8a168
commit 850ab086bc
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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