mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 12:51:25 -07:00
influxdb_query: fix use of common return results (#39626)
This commit is contained in:
parent
3b496db4d8
commit
aa874c3c36
1 changed files with 3 additions and 3 deletions
|
@ -52,11 +52,11 @@ EXAMPLES = r'''
|
||||||
|
|
||||||
- name: Print results from the query
|
- name: Print results from the query
|
||||||
debug:
|
debug:
|
||||||
var: connection.results
|
var: connection.query_results
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
results:
|
query_results:
|
||||||
description: Result from the query
|
description: Result from the query
|
||||||
returned: success
|
returned: success
|
||||||
type: list
|
type: list
|
||||||
|
@ -96,7 +96,7 @@ def main():
|
||||||
influx = AnsibleInfluxDBRead(module)
|
influx = AnsibleInfluxDBRead(module)
|
||||||
query = module.params.get('query')
|
query = module.params.get('query')
|
||||||
results = influx.read_by_query(query)
|
results = influx.read_by_query(query)
|
||||||
module.exit_json(changed=True, results=results)
|
module.exit_json(changed=True, query_results=results)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue