Skip to content

Commit

Permalink
Address PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dliappis committed Aug 7, 2018
1 parent 25ae686 commit 581a69f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions esrally/mechanic/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,11 @@ def record_stats_per_index(self, name, stats):
"""

for shard_stats in stats:
shard_id = shard_stats.get("shard_id", None)
if shard_id is not None:
if "shard_id" in shard_stats:
shard_metadata = {
"cluster": self.cluster_name,
"index": name,
"shard": shard_id,
"shard": shard_stats["shard_id"],
"name": "ccr-stats"
}

Expand Down

0 comments on commit 581a69f

Please sign in to comment.