dnsexit2: Add final comma after last list item

for consistency, and to avoid bugs if additional items are added or
the items are reordered.
This commit is contained in:
Richard Hansen 2024-05-29 18:00:29 -04:00
parent 7c4fe28bab
commit 4804e15c12

View file

@ -4200,14 +4200,14 @@ sub nic_dnsexit2_update {
my $data = encode_json({
apikey => $config{$h}{'password'},
domain => $config{$h}{'zone'},
update => \@payload_values
update => \@payload_values,
});
my $reply = geturl(
proxy => opt('proxy'),
url => $url,
headers => $header,
method => 'POST',
data => $data
data => $data,
);
unless ($reply && header_ok($h, $reply)) {
failed("updating %s: Could not connect to %s%s.", $h, $config{$h}{'server'}, $config{$h}{'path'});