1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

rename return var to avoid conflicts

fixes #22323
This commit is contained in:
Brian Coca 2017-03-06 12:11:54 -05:00 committed by Brian Coca
parent 43ba8813d3
commit 20bf02f6b9

View file

@ -611,8 +611,9 @@ EXAMPLES = '''
'''
RETURN = '''
ansible_docker_container:
docker_container:
description:
- Before 2.3 this was 'ansible_docker_container' but was renamed due to conflicts with the connection plugin.
- Facts representing the current state of the container. Matches the docker inspection output.
- Note that facts are not part of registered vars but accessible directly.
- Empty if C(state) is I(absent)
@ -1675,7 +1676,7 @@ class ContainerManager(DockerBaseClass):
self.results['diff'] = self.diff
if self.facts:
self.results['ansible_facts'] = {'ansible_docker_container': self.facts}
self.results['ansible_facts'] = {'docker_container': self.facts}
def present(self, state):
container = self._get_container(self.parameters.name)