Permalink
Browse files

Luke: Fix bug in type_list

  • Loading branch information...
1 parent 671e179 commit d56f8da4bf49bda3aa4783b3fa73779d6fac1410 @lukecampbell lukecampbell committed Apr 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 elasticpy.py
View
@@ -364,8 +364,8 @@ def type_list(self, index_name):
request.add_header('Content-Type','application/json')
if self.verbose:
print url
- s = urllib2.urlopen(request).read()
- return json.loads(s)
+ response = json.loads(urllib2.urlopen(request).read())
+ return response[index_name].keys()
class ElasticQuery(dict):

0 comments on commit d56f8da

Please sign in to comment.