mirror of https://github.com/zulip/zulip.git
nagios: Fix check_postgres_replication_lag.
This expects to be run outside a virtualenv and thus without typing_extensions available.
This commit is contained in:
parent
7271fb68aa
commit
4034f6f99e
|
@ -20,7 +20,7 @@ states = {
|
||||||
"UNKNOWN": 3
|
"UNKNOWN": 3
|
||||||
}
|
}
|
||||||
|
|
||||||
def report(state: str, msg: str) -> NoReturn:
|
def report(state: str, msg: str) -> "NoReturn":
|
||||||
print("%s: %s" % (state, msg))
|
print("%s: %s" % (state, msg))
|
||||||
exit(states[state])
|
exit(states[state])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue