diff --git a/Changes b/Changes index 01b71e59f..ce40f8136 100644 --- a/Changes +++ b/Changes @@ -30,6 +30,7 @@ inventory: - Remove check alerting on invalid storage interface for GLPI >= 10.0.4 * fix #811: Fix network interface inventory on lxc linux container, but also fix few other cases where more interfaces are found due to interface name aliasing +* Fix --partial option when used with glpi-agent script remoteinventory: * Store remote inventory part checksums in dedicated state files and support maintenance diff --git a/bin/glpi-agent b/bin/glpi-agent index de1e00e63..8868396ba 100755 --- a/bin/glpi-agent +++ b/bin/glpi-agent @@ -11,6 +11,7 @@ use Getopt::Long; use Pod::Usage; use GLPI::Agent; +use GLPI::Agent::Event; Getopt::Long::Configure( "no_ignorecase" ); @@ -194,12 +195,12 @@ if ($options->{'set-forcerun'}) { if ($options->{partial}) { die "--partial option not compatible with --daemon\n" if $options->{daemon}; - $agent->{event} = { + $agent->{event} = GLPI::Agent::Event->new( name => "partial inventory", task => "inventory", partial => 1, category => $options->{partial}, - }; + ); } if ($options->{credentials}) {