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:
parent
770144a766
commit
c2d371ba3d
@ -1026,7 +1026,7 @@ sub print_dynamic
|
||||
sub set_aspect
|
||||
{
|
||||
$self = $0;
|
||||
$self =~ s/^.*\/varnish4_//;
|
||||
$self =~ s/^.*\/varnish[0-9]?_//;
|
||||
if (!defined($ASPECTS{$self}) && @ARGV == 0) {
|
||||
usage "No such aspect";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user