influxdb_query: fix use of common return results (#39626)

pull/39681/merge
René Moser 7 years ago committed by GitHub
parent 3b496db4d8
commit aa874c3c36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,11 +52,11 @@ EXAMPLES = r'''
- name: Print results from the query
debug:
var: connection.results
var: connection.query_results
'''
RETURN = '''
results:
query_results:
description: Result from the query
returned: success
type: list
@ -96,7 +96,7 @@ def main():
influx = AnsibleInfluxDBRead(module)
query = module.params.get('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__':

Loading…
Cancel
Save