Merge pull request #667 from rhansen/scalar

Fix "Scalar value better written as" warning
This commit is contained in:
Richard Hansen 2024-05-18 17:22:44 -04:00 committed by GitHub
commit 58152b03de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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'}";