mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Correct regexp to accept list with dashes etc. in the name
This commit is contained in:
parent
78c9d0c886
commit
b8e09a39b7
@ -48,7 +48,7 @@ my $list_members = "/usr/sbin/list_members";
|
||||
open(LL, "$list_lists|") or exit 4;
|
||||
while (<LL>)
|
||||
{
|
||||
($list, $desc) = (/\s+(\w+)\s-\s(.*)$/);
|
||||
($list, $desc) = (/^\s+(.*?)\s-\s(.*)$/);
|
||||
$lists{$list} = $desc if ($list);
|
||||
}
|
||||
close(LL);
|
||||
|
Loading…
Reference in New Issue
Block a user