Skip to content

Commit

Permalink
B #3189: Flag before stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed Feb 21, 2020
1 parent cae9e5e commit 49b5481
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 49b5481

Please sign in to comment.