Skip to content

Commit

Permalink
Fix index error in YARN check
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinFra authored and Kostas committed Feb 11, 2016
1 parent 3b3680d commit 86075cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks.d/yarn.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _set_yarn_metrics_from_json(self, tags, metrics_json, yarn_metrics):
for status, metric in yarn_metrics.iteritems():
metric_name, metric_type = metric

if metrics_json[status] is not None:
if metrics_json.get(status) is not None:
self._set_metric(metric_name,
metric_type,
metrics_json[status],
Expand Down

0 comments on commit 86075cf

Please sign in to comment.