We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f6c0da commit e178bebCopy full SHA for e178beb
elastichq/model/Task.py
@@ -75,8 +75,8 @@ def run(self):
75
for node_id in node_ids:
76
node_dict = node_stats['nodes'][node_id]
77
78
- available_in_bytes = jmespath.search("fs.data[0].available_in_bytes", node_dict)
79
- total_in_bytes = jmespath.search("fs.data[0].total_in_bytes", node_dict)
+ available_in_bytes = jmespath.search("fs.data[0].available_in_bytes", node_dict) or 0
+ total_in_bytes = jmespath.search("fs.data[0].total_in_bytes", node_dict) or 0
80
81
node = \
82
{
0 commit comments