Simplify docker_*_facts return names (#51939)

* Simplify docker_*_facts return names.

* Adjust regular return values of modules to match style of docker_*_facts modules.
This commit is contained in:
Felix Fontein 2019-03-05 17:09:00 +01:00 committed by John R Barker
parent 1510435577
commit 8c628c9b2c
21 changed files with 208 additions and 208 deletions

View file

@ -56,7 +56,7 @@ EXAMPLES = '''
- name: Print information about container
debug:
var: result.docker_container
var: result.container
when: result.exists
'''
@ -67,7 +67,7 @@ exists:
type: bool
returned: always
sample: true
docker_container:
container:
description:
- Facts representing the current state of the container. Matches the docker inspection output.
- Will be C(None) if container does not exist.
@ -126,7 +126,7 @@ def main():
client.module.exit_json(
changed=False,
exists=(True if container else False),
docker_container=container,
container=container,
)