Closed lazyfrosch closed 6 years ago
My quick fix: Make the RegExp non-greedy
--- /usr/share/perl5/App/ClusterSSH/Range.pm.orig 2017-11-17 15:36:50.900955097 +0100
+++ /usr/share/perl5/App/ClusterSSH/Range.pm 2017-11-17 15:36:55.908944004 +0100
@@ -68,7 +68,7 @@
next;
}
- my ( $base, $spec ) = $item =~ m/^(.*?\{(.*)\}.*?)$/;
+ my ( $base, $spec ) = $item =~ m/^(.*?\{(.*?)\}.*?)$/;
for my $section ( split( /,/, $spec ) ) {
my ( $start, $end );
Oh btw. it works with single patterns:
test icinga-test{2,3}
Thanks for the report and the fix - this has been pushed to the git repo
Cluster Example:
Error:
This worked without a problem before. I'm on
4.10_02
on Debian testing (buster)