summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-ethernet.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-11-29 16:21:54 -0600
committerJohn Estabrook <jestabro@vyos.io>2022-11-29 16:22:56 -0600
commita0c97e33f59adf68fa77222199143a6ba7a5c794 (patch)
tree17882f8ad98c7401e2113923de31450872652566 /src/conf_mode/interfaces-ethernet.py
parent40bd9294ddcdbba7e3b829ffe8f5178bba2776ae (diff)
downloadvyos-1x-a0c97e33f59adf68fa77222199143a6ba7a5c794.tar.gz
vyos-1x-a0c97e33f59adf68fa77222199143a6ba7a5c794.zip
pki: T4847: fix typos
Diffstat (limited to 'src/conf_mode/interfaces-ethernet.py')
-rwxr-xr-xsrc/conf_mode/interfaces-ethernet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-ethernet.py b/src/conf_mode/interfaces-ethernet.py
index e02841831..b49c945cd 100755
--- a/src/conf_mode/interfaces-ethernet.py
+++ b/src/conf_mode/interfaces-ethernet.py
@@ -175,7 +175,7 @@ def generate(ethernet):
loaded_pki_cert = load_certificate(pki_cert['certificate'])
loaded_ca_certs = {load_certificate(c['certificate'])
- for c in ethernet['pki']['ca'].values()}
+ for c in ethernet['pki']['ca'].values()} if 'ca' in ethernet['pki'] else {}
cert_full_chain = find_chain(loaded_pki_cert, loaded_ca_certs)