From aca5e66e04df4783619152f798cc9f9d2e04bf10 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Wed, 3 Jan 2024 17:02:59 +0000 Subject: Format code to new ruff formatter standards --- arthur/exts/kubernetes/certificates.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'arthur/exts/kubernetes/certificates.py') diff --git a/arthur/exts/kubernetes/certificates.py b/arthur/exts/kubernetes/certificates.py index a1306c9..eb2db4c 100644 --- a/arthur/exts/kubernetes/certificates.py +++ b/arthur/exts/kubernetes/certificates.py @@ -28,14 +28,12 @@ class Certificates(commands.Cog): table_data = [] for certificate in certs["items"]: - table_data.append( - [ - certificate["metadata"]["name"], - ", ".join(certificate["spec"]["dnsNames"]), - certificate["spec"]["issuerRef"]["name"], - certificate["status"]["conditions"][0]["message"], - ] - ) + table_data.append([ + certificate["metadata"]["name"], + ", ".join(certificate["spec"]["dnsNames"]), + certificate["spec"]["issuerRef"]["name"], + certificate["status"]["conditions"][0]["message"], + ]) table = tabulate( table_data, headers=["Name", "DNS Names", "Issuer", "Status"], tablefmt="psql" -- cgit v1.2.3