domeneshop: Treat all 2xx as success
This commit is contained in:
parent
b4e08ae3ae
commit
d391f41074
1 changed files with 4 additions and 12 deletions
|
@ -4328,18 +4328,10 @@ sub nic_domeneshop_update {
|
|||
next;
|
||||
}
|
||||
next if !header_ok($h, $reply);
|
||||
my @reply = split /\n/, $reply;
|
||||
my $status = shift(@reply);
|
||||
my $message = pop(@reply);
|
||||
if ($status =~ /204/) {
|
||||
$config{$h}{'ip'} = $ip;
|
||||
$config{$h}{'mtime'} = $now;
|
||||
$config{$h}{'status'} = 'good';
|
||||
success("$h: IP address set to $ip");
|
||||
} else {
|
||||
$config{$h}{'status'} = 'failed';
|
||||
failed("$h: Server said: $status $message");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue