Fix #3941
This commit is contained in:
parent
d6f01d0b4f
commit
af8eabe06f
1 changed files with 4 additions and 4 deletions
|
@ -1776,10 +1776,10 @@ class ContainerManager(DockerBaseClass):
|
|||
self.fail("Error starting container %s: %s" % (container_id, str(exc)))
|
||||
return self._get_container(container_id)
|
||||
|
||||
def container_remove(self, container_id, v=False, link=False, force=False):
|
||||
volume_state = (True if self.parameters.keep_volumes else False)
|
||||
self.log("remove container container:%s v:%s link:%s force%s" % (container_id, v, link, force))
|
||||
self.results['actions'].append(dict(removed=container_id, volume_state=volume_state))
|
||||
def container_remove(self, container_id, link=False, force=False):
|
||||
volume_state = (not self.parameters.keep_volumes)
|
||||
self.log("remove container container:%s v:%s link:%s force%s" % (container_id, volume_state, link, force))
|
||||
self.results['actions'].append(dict(removed=container_id, volume_state=volume_state, link=link, force=force))
|
||||
self.results['changed'] = True
|
||||
response = None
|
||||
if not self.check_mode:
|
||||
|
|
Loading…
Reference in a new issue