If debug true, include actions and differences in output.

pull/18777/head
chouseknecht 8 years ago committed by Matt Clay
parent a8111adcd6
commit 433b5e187f

@ -680,6 +680,7 @@ class TaskParameters(DockerBaseClass):
self.cpuset_mems = None self.cpuset_mems = None
self.cpu_shares = None self.cpu_shares = None
self.detach = None self.detach = None
self.debug = None
self.devices = None self.devices = None
self.dns_servers = None self.dns_servers = None
self.dns_opts = None self.dns_opts = None
@ -1606,13 +1607,10 @@ class ContainerManager(DockerBaseClass):
elif state == 'absent': elif state == 'absent':
self.absent() self.absent()
if not self.check_mode: if not self.check_mode and not self.parameters.debug:
try: self.results.pop('actions')
del self.results['actions']
except:
pass
if self.client.module._diff: if self.client.module._diff or self.parameters.debug:
self.results['diff'] = self.diff self.results['diff'] = self.diff
if self.facts: if self.facts:

Loading…
Cancel
Save