2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Detect aspect correctly even if renamed to varnish_

This commit is contained in:
Ingo Oppermann 2014-07-11 15:41:05 +00:00
parent 770144a766
commit c2d371ba3d

View File

@ -1026,7 +1026,7 @@ sub print_dynamic
sub set_aspect sub set_aspect
{ {
$self = $0; $self = $0;
$self =~ s/^.*\/varnish4_//; $self =~ s/^.*\/varnish[0-9]?_//;
if (!defined($ASPECTS{$self}) && @ARGV == 0) { if (!defined($ASPECTS{$self}) && @ARGV == 0) {
usage "No such aspect"; usage "No such aspect";
} }