Gandi: Fix "Reference found where even-sized list expected" in running the query

This commit is contained in:
Jean-Sebastien Trottier 2022-07-21 21:48:31 -04:00
parent 11a583b003
commit a8ac13bc8e
No known key found for this signature in database
GPG key ID: FE65C895A91596BC

View file

@ -5743,13 +5743,13 @@ sub nic_gandi_update {
$url = "https://$config{$h}{'server'}$config{$h}{'script'}";
$url .= "/livedns/domains/$config{$h}{'zone'}/records/$hostname/$rrset_type";
my $reply = geturl({
my $reply = geturl(
proxy => opt('proxy'),
url => $url,
headers => $headers,
method => 'PUT',
data => $data,
});
);
unless ($reply) {
failed("%s -- Could not connect to %s.", $h, $config{$h}{'server'});
next;