Always set the host
variable
The `host` variable is required, so always set it to avoid error messages when validating the host configuration.
This commit is contained in:
parent
be3c2060eb
commit
04bdd68415
1 changed files with 2 additions and 2 deletions
|
@ -1950,7 +1950,7 @@ sub init_config {
|
|||
## merge options into host definitions or globals
|
||||
if (@hosts) {
|
||||
for my $h (@hosts) {
|
||||
$config{$h} = {%{$config{$h} // {}}, %options};
|
||||
$config{$h} = {%{$config{$h} // {}}, %options, 'host' => $h};
|
||||
}
|
||||
$opt{'host'} = join(',', @hosts);
|
||||
} else {
|
||||
|
@ -2031,7 +2031,7 @@ sub init_config {
|
|||
}
|
||||
|
||||
my $svars = $protocols{$proto}{'variables'};
|
||||
my $conf = {'protocol' => $proto};
|
||||
my $conf = {'host' => $h, 'protocol' => $proto};
|
||||
|
||||
for my $k (keys %$svars) {
|
||||
# Make sure any _env suffixed variables look at their original entry
|
||||
|
|
Loading…
Reference in a new issue