Fix the CLI healthcheck
This commit is contained in:
parent
fbcd86a67b
commit
b6fa8e6632
|
@ -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__)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue