Skip to content

Commit

Permalink
[ElasticSearch] Fix: wrong variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr authored Jan 13, 2017
1 parent 13a0062 commit d2631cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions query_runner/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def _get_query_mappings(self, url):
if error:
return mappings, error

for index_name in mappings_data:
index_mappings = mappings_data[index_name]
for index_name in mappings:
index_mappings = mappings[index_name]
for m in index_mappings.get("mappings", {}):
for property_name in index_mappings["mappings"][m]["properties"]:
property_data = index_mappings["mappings"][m]["properties"][property_name]
Expand Down

0 comments on commit d2631cd

Please sign in to comment.