Skip to content

Commit

Permalink
Fix "Scalar value better written as" warning
Browse files Browse the repository at this point in the history
Also some readability improvements.
  • Loading branch information
rhansen committed May 18, 2024
1 parent af50f7f commit 03ad248
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ddclient.in
Original file line number Diff line number Diff line change
Expand Up @@ -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'}";
Expand Down

0 comments on commit 03ad248

Please sign in to comment.