mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
docker_host_info and docker_node: fix return variable names (#54172)
* docker_host_info: host_facts -> host_info * docker_node: node_facts -> node
This commit is contained in:
parent
d73db7f060
commit
946a16cc82
4 changed files with 66 additions and 66 deletions
|
@ -122,7 +122,7 @@ EXAMPLES = '''
|
|||
'''
|
||||
|
||||
RETURN = '''
|
||||
node_facts:
|
||||
node:
|
||||
description: Information about node after 'update' operation
|
||||
returned: success
|
||||
type: dict
|
||||
|
@ -253,10 +253,10 @@ class SwarmNodeManager(DockerBaseClass):
|
|||
node_spec=node_spec)
|
||||
except APIError as exc:
|
||||
self.client.fail("Failed to update node : %s" % to_native(exc))
|
||||
self.results['node_facts'] = self.client.get_node_inspect(node_id=node_info['ID'])
|
||||
self.results['node'] = self.client.get_node_inspect(node_id=node_info['ID'])
|
||||
self.results['changed'] = changed
|
||||
else:
|
||||
self.results['node_facts'] = node_info
|
||||
self.results['node'] = node_info
|
||||
self.results['changed'] = changed
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue