Fix geturl function call
The function should be called without the brackets
This commit is contained in:
parent
11a583b003
commit
8ffb15d302
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue