Skip to content

Commit

Permalink
B #3189: Flag before stopping (#4244)
Browse files Browse the repository at this point in the history
(cherry picked from commit 23b3aa3)
  • Loading branch information
dann1 authored and rsmontero committed Feb 21, 2020
1 parent e6cc49c commit 4a5bf16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vmm_mad/remotes/lib/lxd/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,12 @@ def reboot(force)
case config['user.reboot_state']
when 'STOPPED'
start

config['user.reboot_state'] = 'RUNNING'
transition_end # container reached a final state
else
transition_start # container will be started later
check_stop(force)

config['user.reboot_state'] = 'STOPPED'
transition_start # container will be started later
end

update
Expand Down

0 comments on commit 4a5bf16

Please sign in to comment.