Skip to content

Commit

Permalink
fix: Rework previous fix on windows videos inventory
Browse files Browse the repository at this point in the history
to also work when satisfying unittests
  • Loading branch information
g-bougard committed Oct 8, 2024
1 parent fdeb7fa commit dbf463a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GLPI/Agent/Task/Inventory/Win32/Videos.pm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ sub _getVideos {
);
if ($videokey) {
foreach my $subkey (keys(%{$videokey})) {
next unless $subkey =~ m{/$} && defined($videokey->{$subkey}) && ref($videokey->{$subkey}) eq "HASH";
next unless $subkey =~ m{/$} && defined($videokey->{$subkey}) && ref($videokey->{$subkey});
my $thispnpdeviceid = _pnpdeviceid($videokey->{$subkey}->{"/MatchingDeviceId"})
or next;
next unless $thispnpdeviceid eq $pnpdeviceid;
Expand Down

0 comments on commit dbf463a

Please sign in to comment.