From f8522f323ec26a2a1507a6026cbc939bb8960262 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 27 Mar 2023 12:03:58 -0500 Subject: openvpn: T5051: fix hyphen/underscore error in use of typing.Literal --- src/op_mode/openvpn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/op_mode/openvpn.py b/src/op_mode/openvpn.py index 7ae49472e..37fdbcbeb 100755 --- a/src/op_mode/openvpn.py +++ b/src/op_mode/openvpn.py @@ -150,7 +150,8 @@ def _get_raw_data(mode: str) -> list: if not conf_dict: return data - interfaces = [x for x in list(conf_dict) if conf_dict[x]['mode'] == mode] + interfaces = [x for x in list(conf_dict) if + conf_dict[x]['mode'].replace('-', '_') == mode] for intf in interfaces: d = _get_interface_status(mode, intf) d['local_host'] = conf_dict[intf].get('local-host', '') -- cgit v1.2.3