summaryrefslogtreecommitdiff
path: root/src/op_mode/openvpn.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-04-07 13:20:53 -0500
committerJohn Estabrook <jestabro@vyos.io>2023-04-07 13:20:53 -0500
commitd5eafd464047ee293c68c2fe6e1ba4e6e4d60585 (patch)
tree65a1f694dc369147000b5f4a92fc31abcc64d24f /src/op_mode/openvpn.py
parent5f94bde6d6024b753765d28d2fdb69806f1968b5 (diff)
downloadvyos-1x-d5eafd464047ee293c68c2fe6e1ba4e6e4d60585.tar.gz
vyos-1x-d5eafd464047ee293c68c2fe6e1ba4e6e4d60585.zip
openvpn: T5149: do not raise error in case of disabled interface
Diffstat (limited to 'src/op_mode/openvpn.py')
-rwxr-xr-xsrc/op_mode/openvpn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/openvpn.py b/src/op_mode/openvpn.py
index 37fdbcbeb..5a1a4914d 100755
--- a/src/op_mode/openvpn.py
+++ b/src/op_mode/openvpn.py
@@ -63,7 +63,7 @@ def _get_interface_status(mode: str, interface: str) -> dict:
}
if not os.path.exists(status_file):
- raise vyos.opmode.DataUnavailable('No information for interface {interface}')
+ return data
with open(status_file, 'r') as f:
lines = f.readlines()