Permalink
Browse files

Modify reload action to be a real reboot

  • Loading branch information...
Loïc PORTE
Loïc PORTE committed Jun 9, 2014
1 parent bc1faab commit 91f5dc65a781d062d156b912bfd9d4b84db82e44
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/vagrant-openstack-plugin/action.rb
@@ -125,14 +125,12 @@ def self.action_reload
b.use Call, IsPaused do |env, b1|
unless env[:result]
b1.use Call, IsSuspended do |env2, b2|
b1.use action_halt unless env2[:result]
b2.use RebootServer
end
end
b1.use Call, WaitForState, [:paused, :suspended], 120 do |env2, b2|
if env2[:result]
b2.use action_up
else
b1.use Call, WaitForState, [:active], 120 do |env2, b2|
unless env2[:result]
b2.use HardRebootServer
end
end

0 comments on commit 91f5dc6

Please sign in to comment.