Fix the lxc container restart state

The lxc container restart state does not ensure that the container
is in fact started unless another config or command is passed into
the task. to fix this the module simply needs to have the function
call added ``self._container_startup()`` after the container is
put into a stopped state.

Signed-off By: Kevin Carter <kevin.carter@rackspace.com>
pull/18777/head
Kevin Carter 10 years ago committed by Matt Clay
parent 5f84fc985d
commit 16cc3423a5

@ -1065,6 +1065,9 @@ class LxcContainerManagement(object):
self.container.stop()
self.state_change = True
# Run container startup
self._container_startup()
# Check if the container needs to have an archive created.
self._check_archive()

Loading…
Cancel
Save