mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
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:
committed by
John R Barker
parent
1510435577
commit
8c628c9b2c
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user