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 network
debug:
var: result.docker_network
var: result.network
when: result.exists
'''
@ -67,7 +67,7 @@ exists:
type: bool
returned: always
sample: true
docker_network:
network:
description:
- Facts representing the current state of the network. Matches the docker inspection output.
- Will be C(None) if network does not exist.
@ -122,7 +122,7 @@ def main():
client.module.exit_json(
changed=False,
exists=(True if network else False),
docker_network=network,
network=network,
)