Merge pull request #174 from rhansen/host-opt

Fix global fallback when host-specific setting is undefined
This commit is contained in:
Sandro 2020-06-14 02:02:33 +02:00 committed by GitHub
commit 0b60ce3f94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1708,7 +1708,7 @@ sub minimum {
sub opt {
my $v = shift;
my $h = shift;
return $config{$h}{$v} if defined($h && $config{$h}{$v});
return $config{$h}{$v} if defined($h) && defined($config{$h}{$v});
return $opt{$v} if defined $opt{$v};
return $globals{$v} if defined $globals{$v};
return default($v) if defined default($v);