Commit efc37c3c authored by Mikołaj Nowicki's avatar Mikołaj Nowicki Committed by Tomi Sarvela

hw_parse.rb:Adjust to new i915_display_info format

Fixes issue when displays at hardware list page were empty.
Signed-off-by: Mikołaj Nowicki's avatarMikolaj Nowicki <mikolaj.nowicki@intel.com>
parent 84d5521c
......@@ -79,7 +79,7 @@ end
module I915DisplayInfo
def self.is_connector_line?(line)
line =~ /^connector \d+:/
line =~ /^\[?connector:? ?\d+/i
end
......@@ -102,7 +102,7 @@ module I915DisplayInfo
def self.get_status_and_name(line)
connector = line.scan(/connector \d+: type (\S+), status: (connected|disconnected)/)
connector = line.scan(/\[?connector(?: |:)\d+:(?: type )?(\S+)?(?:]:|,) status: (connected|disconnected)/i)
connector.flatten!
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment