diff options
Diffstat (limited to 'arthur/exts/kubernetes/certificates.py')
-rw-r--r-- | arthur/exts/kubernetes/certificates.py | 14 |
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" |