]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Fix regex in bacula-backup-dirs
authorPeter Palfrader <peter@palfrader.org>
Tue, 9 Dec 2014 20:47:56 +0000 (21:47 +0100)
committerPeter Palfrader <peter@palfrader.org>
Tue, 9 Dec 2014 20:47:56 +0000 (21:47 +0100)
modules/bacula/files/bacula-backup-dirs

index bff45a5f010d04270128f27e09b64b072310efad..f63ddef701879bb898fe7f29d5ba24ffbd7002c8 100644 (file)
@@ -2,7 +2,7 @@
 
 import re
 
-MI_RE = re.compile(r'(?P<mountid>\d+) (?P<parentid>\d+) (?P<majorminor>\d+:\d+) (?P<root>\S+) (?P<mountpoint>\S+) (?P<options>\S+) (?P<optional>(?:\S+\s)+ )?- (?P<fstype>\S+) (?P<mountsrc>\S+) (?P<superopts>\S+)')
+MI_RE = re.compile(r'(?P<mountid>\d+) (?P<parentid>\d+) (?P<majorminor>\d+:\d+) (?P<root>\S+) (?P<mountpoint>\S+) (?P<options>\S+) (?P<optional>(?:\S+\s)+)?- (?P<fstype>\S+) (?P<mountsrc>\S+) (?P<superopts>\S+)')
 
 for line in file("/proc/self/mountinfo"):
     mi = MI_RE.match(line)