Skip to content

Commit e178beb

Browse files
committed
Fixes #372
1 parent 2f6c0da commit e178beb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elastichq/model/Task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def run(self):
7575
for node_id in node_ids:
7676
node_dict = node_stats['nodes'][node_id]
7777

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)
78+
available_in_bytes = jmespath.search("fs.data[0].available_in_bytes", node_dict) or 0
79+
total_in_bytes = jmespath.search("fs.data[0].total_in_bytes", node_dict) or 0
8080

8181
node = \
8282
{

0 commit comments

Comments
 (0)