mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07: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:
parent
1510435577
commit
8c628c9b2c
21 changed files with 208 additions and 208 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue