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
@@ -115,11 +115,11 @@ EXAMPLES = '''
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
docker_volume:
|
||||
volume:
|
||||
description:
|
||||
- Volume inspection results for the affected volume.
|
||||
- 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_volume). Note that the returned fact will be removed in Ansible 2.12.
|
||||
returned: success
|
||||
type: dict
|
||||
sample: {}
|
||||
@@ -291,7 +291,7 @@ class DockerVolumeManager(object):
|
||||
|
||||
volume_facts = self.get_existing_volume()
|
||||
self.results['ansible_facts'] = {u'docker_volume': volume_facts}
|
||||
self.results['docker_volume'] = volume_facts
|
||||
self.results['volume'] = volume_facts
|
||||
|
||||
def absent(self):
|
||||
self.diff_tracker.add('exists', parameter=False, active=self.existing_volume is not None)
|
||||
|
||||
Reference in New Issue
Block a user