From f62178929800e2a25ab3a3a61ef7ea3e411b1429 Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Fri, 22 Dec 2023 07:23:15 -0800 Subject: [PATCH] Fixed SIM118 (in-dict-keys): Use `key in dict` instead of `key in dict.keys()` --- management/ssl_certificates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/ssl_certificates.py b/management/ssl_certificates.py index 4e84fc07..3e4bbd2a 100755 --- a/management/ssl_certificates.py +++ b/management/ssl_certificates.py @@ -266,7 +266,7 @@ def provision_certificates(env, limit_domains): certs[zone] = [[]] for domain in sort_domains(domains, env): # Does the domain end with any domain we've seen so far. - for parent in certs.keys(): + for parent in certs: if domain.endswith("." + parent): # Add this to the parent's list of domains. # Start a new group if the list already has