Python linting

This commit is contained in:
T. Andrew Manning 2024-12-17 08:58:29 -06:00
parent 47d581a6ac
commit ad07deae24

View file

@ -6,7 +6,6 @@ import signal
import sys import sys
import threading import threading
from unicodedata import name
from kubernetes import client, config, watch from kubernetes import client, config, watch
from kubernetes.client.rest import ApiException from kubernetes.client.rest import ApiException
@ -39,10 +38,10 @@ def create_certificate(crds, namespace, secretname, routes):
Create a certificate request for certmanager based on the IngressRoute Create a certificate request for certmanager based on the IngressRoute
""" """
try: try:
secret = crds.get_namespaced_custom_object(CERT_GROUP, CERT_VERSION, namespace, CERT_PLURAL, secretname) # secret = crds.get_namespaced_custom_object(CERT_GROUP, CERT_VERSION, namespace, CERT_PLURAL, secretname)
logging.info(f"{secretname} : certificate request already exists.") logging.info(f"{secretname} : certificate request already exists.")
return return
except ApiException as e: except ApiException:
pass pass
for route in routes: for route in routes: