mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -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
|
@ -241,11 +241,11 @@ EXAMPLES = '''
|
|||
'''
|
||||
|
||||
RETURN = '''
|
||||
docker_network:
|
||||
network:
|
||||
description:
|
||||
- Network inspection results for the affected network.
|
||||
- Note that facts are part of the registered vars since Ansible 2.8. For compatibility reasons, the facts
|
||||
are also accessible directly. Note that the returned fact will be removed in Ansible 2.12.
|
||||
are also accessible directly as C(docker_network). Note that the returned fact will be removed in Ansible 2.12.
|
||||
returned: success
|
||||
type: dict
|
||||
sample: {}
|
||||
|
@ -575,7 +575,7 @@ class DockerNetworkManager(object):
|
|||
|
||||
network_facts = self.get_existing_network()
|
||||
self.results['ansible_facts'] = {u'docker_network': network_facts}
|
||||
self.results['docker_network'] = network_facts
|
||||
self.results['network'] = network_facts
|
||||
|
||||
def absent(self):
|
||||
self.diff_tracker.add('exists', parameter=False, active=self.existing_network is not None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue