Skip to content

Commit 0b40b97

Browse files
committed
fix: Don't inventory Surface Display as monitor on windows
1 parent 3de8a77 commit 0b40b97

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ inventory:
3333
* fix #1023: Improve iLO ip address resolution on Windows
3434
* Fix additional content merged into json even when not required on partial content
3535
* Update support for Acer S240L monitors inventory
36+
* Don't inventory Surface Display as monitor on windows
3637

3738
remoteinventory:
3839
* fix RedHat RHN systemid set as WINPRODID

lib/GLPI/Agent/Task/Inventory/Generic/Screen.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ sub _getScreensFromWindows {
139139
next unless $object->{PNPDeviceID};
140140
next unless $object->{Availability} == 3;
141141

142+
# Ignore "Surface Display" type which is not a connecter monitor and may
143+
# expose a wrong serialnumber
144+
next if $object->{MonitorType} && $object->{MonitorType} =~ /^Surface Display$/i;
145+
142146
push @screens, {
143147
id => $object->{PNPDeviceID},
144148
NAME => $object->{Caption},

0 commit comments

Comments
 (0)