Fix "Scalar value better written as" warning

Also some readability improvements.
This commit is contained in:
Richard Hansen 2024-05-14 18:33:05 -04:00
parent af50f7f69d
commit 03ad24829c

View file

@ -4237,10 +4237,12 @@ sub nic_dnsexit2_update {
info("Going to update IPv$ipv address to %s for %s.", $ip, $h);
$config{$h}{'status-ipv$ipv'} = 'failed';
# One key per ipv (4 or 6)
my %payload = (name => $h, type => $type, content => $ip, ttl => $config{$h}{'ttl'});
@total_payload{$ipv} = \%payload;
$total_payload{$ipv} = {
name => $h,
type => $type,
content => $ip,
ttl => $config{$h}{'ttl'},
};
};
# Set the URL of the API endpoint
my $url = "https://$config{$h}{'server'}$config{$h}{'path'}";