diff options
author | Kevin Carter <kevin.carter@rackspace.com> | 2015-06-13 13:56:26 -0500 |
---|---|---|
committer | Kevin Carter <kevin.carter@rackspace.com> | 2015-06-13 13:56:26 -0500 |
commit | d3b3d7ff3c249de062df93a533a568f0681cce3c (patch) | |
tree | 1801f8b341cadaef52b6d311bb2cc9cd3383ba22 /cloud/lxc | |
parent | 3f76a37f27dac02bc0423565904bb6cad2957760 (diff) | |
download | ansible-modules-extras-d3b3d7ff3c249de062df93a533a568f0681cce3c.tar.gz |
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>
Diffstat (limited to 'cloud/lxc')
-rw-r--r-- | cloud/lxc/lxc_container.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cloud/lxc/lxc_container.py b/cloud/lxc/lxc_container.py index 18555e2e..7fc86825 100644 --- a/cloud/lxc/lxc_container.py +++ b/cloud/lxc/lxc_container.py @@ -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() |