check-rabbitmq-consumers: Add missing f on format string.

This commit is contained in:
Alex Vandiver 2024-06-05 00:22:37 -04:00 committed by Tim Abbott
parent 46a57e37aa
commit 1b10bf1921
1 changed files with 1 additions and 1 deletions

View File

@ -65,5 +65,5 @@ for queue_name in consumers:
atomic_nagios_write(
"check-rabbitmq-consumers-" + queue_name,
"critical" if consumers[queue_name] < target_count else "ok",
"queue {queue_name} has {consumers[queue_name]} consumers, needs {target_count}",
f"queue {queue_name} has {consumers[queue_name]} consumers, needs {target_count}",
)