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 = "https://$config{$h}{'server'}$config{$h}{'script'}";
$url .= "/livedns/domains/$config{$h}{'zone'}/records/$hostname/$rrset_type"; $url .= "/livedns/domains/$config{$h}{'zone'}/records/$hostname/$rrset_type";
my $reply = geturl({ my $reply = geturl(
proxy => opt('proxy'), proxy => opt('proxy'),
url => $url, url => $url,
headers => $headers, headers => $headers,
method => 'PUT', method => 'PUT',
data => $data, data => $data,
}); );
unless ($reply) { unless ($reply) {
failed("%s -- Could not connect to %s.", $h, $config{$h}{'server'}); failed("%s -- Could not connect to %s.", $h, $config{$h}{'server'});
next; next;