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:
parent
a7abfcb715
commit
f32f7fc29a
1 changed files with 1 additions and 1 deletions
|
@ -51,10 +51,10 @@ local %ddclient::protocols = (
|
||||||
update => sub {
|
update => sub {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
ddclient::debug('in update');
|
ddclient::debug('in update');
|
||||||
|
push(@updates, [@_]);
|
||||||
for my $h (@_) {
|
for my $h (@_) {
|
||||||
local $ddclient::_l = ddclient::pushlogctx($h);
|
local $ddclient::_l = ddclient::pushlogctx($h);
|
||||||
ddclient::debug('updating host');
|
ddclient::debug('updating host');
|
||||||
push(@updates, [@_]);
|
|
||||||
$ddclient::recap{$h}{status} = 'good';
|
$ddclient::recap{$h}{status} = 'good';
|
||||||
$ddclient::recap{$h}{ip} = delete($ddclient::config{$h}{wantip});
|
$ddclient::recap{$h}{ip} = delete($ddclient::config{$h}{wantip});
|
||||||
$ddclient::recap{$h}{mtime} = $ddclient::now;
|
$ddclient::recap{$h}{mtime} = $ddclient::now;
|
||||||
|
|
Loading…
Reference in a new issue