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>
reviewable/pr18780/r1
Kevin Carter 10 years ago
parent 3f76a37f27
commit d3b3d7ff3c

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