Skip to content

Commit 69f9ba5

Browse files
committed
[openvpn] Fixed OpenVPN parsing regexp for python 2
1 parent 108e6c6 commit 69f9ba5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

netjsonconfig/backends/openvpn/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from ..base.parser import BaseParser
66

77
vpn_pattern = re.compile('^# openvpn config:\s', flags=re.MULTILINE)
8-
config_pattern = re.compile('^([^\s]*)\s?(.*)?$')
8+
config_pattern = re.compile('^([^\s]*) ?(.*)$')
99
config_suffix = '.conf'
1010

1111

0 commit comments

Comments
 (0)