From aa874c3c36528ecb69837bbf6f2f0248d6eaed0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Sat, 5 May 2018 14:11:42 +0200 Subject: [PATCH] influxdb_query: fix use of common return results (#39626) --- lib/ansible/modules/database/influxdb/influxdb_query.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/database/influxdb/influxdb_query.py b/lib/ansible/modules/database/influxdb/influxdb_query.py index fb57f6fb3ca..407037849fa 100644 --- a/lib/ansible/modules/database/influxdb/influxdb_query.py +++ b/lib/ansible/modules/database/influxdb/influxdb_query.py @@ -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__':