Skip to content

Commit

Permalink
fix: Don't send xml discovery file for computer
Browse files Browse the repository at this point in the history
for remote inventory task event initiated from toolbox
  • Loading branch information
g-bougard committed Dec 4, 2024
1 parent 59b05bd commit a2db0fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ remoteinventory:
netdiscovery/netinventory:
* fix #768: Added Aerohive devices support
* fix #769: Added Intelbras devices support
* don't send discovery xml to server target for remoteinventory task event initiated
from toolbox

deploy:
* Fix checks on command run and clarify reason of success or failure. This fixes
Expand Down
4 changes: 3 additions & 1 deletion lib/GLPI/Agent/Task/NetDiscovery.pm
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ sub run {
}
}

$self->_sendResultMessage($result, $jobid);
# Don't send xml discovery inventory to server on computer remote inventory
$self->_sendResultMessage($result, $jobid)
unless $authremote && $self->{target}->isType('server');

# Eventually chain with netinventory when requested
if ($job->netscan) {
Expand Down

0 comments on commit a2db0fc

Please sign in to comment.