Skip to content

Commit

Permalink
fix: Fix netscan task fails to submit remote inventories with JSON pr…
Browse files Browse the repository at this point in the history
…otocol
  • Loading branch information
g-bougard committed Dec 19, 2023
1 parent 7519e6e commit f04383e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ toolbox:
* fix #533: Fix Toolbox export buttons in inventory results
* Fix wrong remote inventory results when using a short timeout for quickier detection
* Handle agent folder as vardir folder when agent is running as a service
* Fix netscan task fails to submit remote inventories with JSON protocol

injector:
* fix #537: Make -x, --xml-ua & --json-ua options equivalent and update help text
Expand Down
11 changes: 6 additions & 5 deletions lib/GLPI/Agent/HTTP/Server/ToolBox/Inventory.pm
Original file line number Diff line number Diff line change
Expand Up @@ -881,11 +881,12 @@ sub netscan {

# Create an NetDiscovery task
my $netdisco = GLPI::Agent::Task::NetDiscovery->new(
config => $agent->{config},
datadir => $agent->{datadir},
logger => $logger,
target => $target,
deviceid => $agent->{deviceid},
config => $agent->{config},
datadir => $agent->{datadir},
logger => $logger,
target => $target,
deviceid => $agent->{deviceid},
agentid => $agent->{agentid},
);

# Compute ranges
Expand Down

0 comments on commit f04383e

Please sign in to comment.