1984: Update cached status and IP on success
This commit is contained in:
parent
8b0c038d63
commit
baec50d134
1 changed files with 2 additions and 0 deletions
|
@ -5609,6 +5609,8 @@ sub nic_1984_update {
|
|||
next;
|
||||
}
|
||||
|
||||
$config{$host}{'status'} = 'good';
|
||||
$config{$host}{'ip'} = $ip;
|
||||
if ($response->{msg} =~ /unaltered/) {
|
||||
success("Updating %s: skipped: IP was already set to %s", $host, $response->{ip});
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue