From 44227cfaa63446174d1305c2143cf676a576b759 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 12 Sep 2019 21:05:58 +0200 Subject: openvpn: T1548: fix missing sys import --- src/op_mode/show_openvpn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/op_mode/show_openvpn.py b/src/op_mode/show_openvpn.py index 23a8156ec..eafb645de 100755 --- a/src/op_mode/show_openvpn.py +++ b/src/op_mode/show_openvpn.py @@ -18,6 +18,7 @@ import jinja2 import argparse +from sys import exit from vyos.config import Config outp_tmpl = """ @@ -136,7 +137,7 @@ if __name__ == '__main__': config = Config() if len(config.list_effective_nodes('interfaces openvpn')) == 0: print("No OpenVPN interfaces configured") - sys.exit(0) + exit(0) # search all OpenVPN interfaces and add those with a matching mode to our # interfaces list -- cgit v1.2.3