From b6fa8e663283987c2c81e710f0b9a84891272a0b Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 26 May 2021 23:08:43 +0100 Subject: [PATCH] Fix the CLI healthcheck --- alertify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alertify.py b/alertify.py index 4506891..adc85e6 100644 --- a/alertify.py +++ b/alertify.py @@ -70,7 +70,8 @@ if __name__ == '__main__': if args.healthcheck: _, status = alertify.healthcheck() - return status == 200 + # Invert the sense of 'healthy' for Unix CLI usage + return not status == 200 logging.info('Version: %s', Alertify.__version__)