mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-01 12:40:22 -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 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,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue