[stable-11] monit: fix check for pending (#11253)

* monit: fix check for pending

* add changelog frag

* adjust testcases
This commit is contained in:
Alexei Znamensky
2025-12-03 19:19:55 +13:00
committed by GitHub
parent df3898b08c
commit 364e491b7e
3 changed files with 7 additions and 5 deletions

View File

@@ -187,7 +187,7 @@ class Monit(object):
else:
status = Status.NOT_MONITORED
if state == 'pending':
if state == 'PENDING':
status = status.pending()
return status