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/4420/head
Kevin Carter 2015-06-13 13:56:26 -05:00 committed by Matt Clay
parent 5f84fc985d
commit 16cc3423a5
1 changed files with 3 additions and 0 deletions

View File

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