summaryrefslogtreecommitdiff
path: root/src/op_mode/show_openvpn.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-12 21:05:58 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-12 21:05:58 +0200
commit44227cfaa63446174d1305c2143cf676a576b759 (patch)
treebb7f2db9ad33defe5f7240d364d5017fc914ee61 /src/op_mode/show_openvpn.py
parent87bcec2732c8676494a445602388484f88e9ab50 (diff)
downloadvyos-1x-44227cfaa63446174d1305c2143cf676a576b759.tar.gz
vyos-1x-44227cfaa63446174d1305c2143cf676a576b759.zip
openvpn: T1548: fix missing sys import
Diffstat (limited to 'src/op_mode/show_openvpn.py')
-rwxr-xr-xsrc/op_mode/show_openvpn.py3
1 files changed, 2 insertions, 1 deletions
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