Fix the CLI healthcheck

This commit is contained in:
Scott Wallace 2021-05-26 23:08:43 +01:00
parent fbcd86a67b
commit b6fa8e6632

View file

@ -70,7 +70,8 @@ if __name__ == '__main__':
if args.healthcheck: if args.healthcheck:
_, status = alertify.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__) logging.info('Version: %s', Alertify.__version__)