mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Detect aspect correctly even if renamed to varnish_
This commit is contained in:
parent
770144a766
commit
c2d371ba3d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue