Skip to content

Commit

Permalink
Corrected variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralnoc committed Jun 18, 2015
1 parent 37948d3 commit fa7205a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es2graphite.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def get_metrics():
indices_stats_url = 'http://%s/_stats?all=true' % get_es_host()
if args.shard_stats:
indices_stats_url = '%s&level=shards' % indices_stats_url
elif args.health-level == 'cluster':
elif args.health_level == 'cluster':
indices_stats_url = '%s&level=cluster' % indices_stats_url
log('%s: GET %s' % (dt, indices_stats_url))
indices_stats_data = urllib2.urlopen(indices_stats_url).read()
Expand Down

0 comments on commit fa7205a

Please sign in to comment.