Skip to content

Commit

Permalink
make health check pass on crate yellow cluster state.
Browse files Browse the repository at this point in the history
  • Loading branch information
c0c0n3 committed Aug 5, 2019
1 parent 08d3f6c commit d2a41df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/translators/crate.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_health(self):

else:
res = self.cursor.fetchall()
if len(res) == 0 or res[0][0] == 'GREEN':
if len(res) == 0 or res[0][0] in ('GREEN', 'YELLOW'):
# (can be empty when no tables were created yet)
health['status'] = 'pass'
else:
Expand Down

0 comments on commit d2a41df

Please sign in to comment.