Fix geturl function call

The function should be called without the brackets
This commit is contained in:
Mike Chester 2021-03-03 23:49:16 -08:00 committed by GitHub
parent 11a583b003
commit 8ffb15d302
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;