ruff: Fix SIM118 Use key in dict instead of key in dict.keys().

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-12-11 18:39:16 -08:00
committed by Tim Abbott
parent a6442288cf
commit e1ed44907b
22 changed files with 27 additions and 27 deletions

View File

@@ -53,7 +53,7 @@ for line in output.split("\n"):
now = int(time.time())
for queue_name in consumers.keys():
for queue_name in consumers:
state_file_path = "/var/lib/nagios_state/check-rabbitmq-consumers-" + queue_name
state_file_tmp = state_file_path + "-tmp"