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 <>
parent 84d5521c
......@@ -79,7 +79,7 @@ end
module I915DisplayInfo
def self.is_connector_line?(line)
line =~ /^connector \d+:/
line =~ /^\[?connector:? ?\d+/i
......@@ -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)
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