Improve paused test and behavior. (#48056)

This commit is contained in:
Felix Fontein 2018-11-05 12:34:23 +01:00 committed by John R Barker
parent af2b477950
commit 569ec812e7
2 changed files with 9 additions and 20 deletions

View file

@ -2248,6 +2248,7 @@ class ContainerManager(DockerBaseClass):
self.fail("Error %s container %s: %s" % (
"pausing" if self.parameters.paused else "unpausing", container.Id, str(exc)
))
container = self._get_container(container.Id)
self.results['changed'] = True
self.results['actions'].append(dict(set_paused=self.parameters.paused))