From d5eafd464047ee293c68c2fe6e1ba4e6e4d60585 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Fri, 7 Apr 2023 13:20:53 -0500 Subject: openvpn: T5149: do not raise error in case of disabled interface --- src/op_mode/openvpn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/op_mode/openvpn.py') 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() -- cgit v1.2.3