mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +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
@@ -76,7 +76,7 @@ EXAMPLES = '''
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
nodes_facts:
|
||||
nodes:
|
||||
description:
|
||||
- Facts representing the current state of the nodes. Matches the C(docker node inspect) output.
|
||||
- Can contain multiple entries if more than one node provided in I(name), or I(name) is not provided.
|
||||
@@ -136,11 +136,11 @@ def main():
|
||||
|
||||
client.fail_task_if_not_swarm_manager()
|
||||
|
||||
node = get_node_facts(client)
|
||||
nodes = get_node_facts(client)
|
||||
|
||||
client.module.exit_json(
|
||||
changed=False,
|
||||
nodes_facts=node,
|
||||
nodes=nodes,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user