aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/exts/kubernetes/certificates.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-01-03 17:02:59 +0000
committerGravatar Chris Lovering <[email protected]>2024-01-03 17:02:59 +0000
commitaca5e66e04df4783619152f798cc9f9d2e04bf10 (patch)
treedbfb6c72c25d475e1d76d819cdffd512344b4b69 /arthur/exts/kubernetes/certificates.py
parentBump deps to latest (diff)
Format code to new ruff formatter standards
Diffstat (limited to 'arthur/exts/kubernetes/certificates.py')
-rw-r--r--arthur/exts/kubernetes/certificates.py14
1 files changed, 6 insertions, 8 deletions
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"