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>
This commit is contained in:
parent
3f76a37f27
commit
d3b3d7ff3c
1 changed files with 3 additions and 0 deletions
|
@ -1065,6 +1065,9 @@ class LxcContainerManagement(object):
|
||||||
self.container.stop()
|
self.container.stop()
|
||||||
self.state_change = True
|
self.state_change = True
|
||||||
|
|
||||||
|
# Run container startup
|
||||||
|
self._container_startup()
|
||||||
|
|
||||||
# Check if the container needs to have an archive created.
|
# Check if the container needs to have an archive created.
|
||||||
self._check_archive()
|
self._check_archive()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue