tests: update_nics: Fix tracking of update calls

The tests weren't failing because there was only one host being
updated at a time, but this will change in a future commit.
This commit is contained in:
Richard Hansen 2024-09-05 02:56:56 -04:00
parent a7abfcb715
commit f32f7fc29a

View file

@ -51,10 +51,10 @@ local %ddclient::protocols = (
update => sub {
my $self = shift;
ddclient::debug('in update');
push(@updates, [@_]);
for my $h (@_) {
local $ddclient::_l = ddclient::pushlogctx($h);
ddclient::debug('updating host');
push(@updates, [@_]);
$ddclient::recap{$h}{status} = 'good';
$ddclient::recap{$h}{ip} = delete($ddclient::config{$h}{wantip});
$ddclient::recap{$h}{mtime} = $ddclient::now;