From 1839c8699d1c9b6956266564a4f993ebf54b59ea Mon Sep 17 00:00:00 2001 From: Marcos Diez Date: Thu, 19 Jan 2017 21:47:01 -0300 Subject: [PATCH] fix code typo (#20478) --- lib/ansible/plugins/lookup/mongodb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/mongodb.py b/lib/ansible/plugins/lookup/mongodb.py index 49262769b8..9f73a0373a 100644 --- a/lib/ansible/plugins/lookup/mongodb.py +++ b/lib/ansible/plugins/lookup/mongodb.py @@ -78,7 +78,7 @@ class LookupModule(LookupBase): elif isinstance(result, dict): new_dict = {} for key in result.keys(): - value = reslut[key] # python2 and 3 compatible.... + value = result[key] # python2 and 3 compatible.... new_dict[key] = self.convert_mongo_result_to_valid_json(value) return new_dict elif isinstance(result, datetime.datetime):