Skip to content

Commit

Permalink
fix: initialize Availability content
Browse files Browse the repository at this point in the history
Without this changes, the second secreen "Availability" key is undef.
Since Availability != 3, the screen in not improted in the inventory.
  • Loading branch information
iipolovinkin authored and Gonéri Le Bouder committed May 17, 2012
1 parent 68540d7 commit e9bc45e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -84,7 +84,7 @@ sub _getScreensFromWindows {
foreach my $object (getWmiObjects(
class => 'Win32_DesktopMonitor',
properties => [ qw/
Caption MonitorManufacturer MonitorType PNPDeviceID
Caption MonitorManufacturer MonitorType PNPDeviceID Availability
/ ]
)) {
next unless $object->{Availability};
Expand Down

0 comments on commit e9bc45e

Please sign in to comment.