platform and name can have valid os name
This commit is contained in:
parent
b305885fad
commit
a3c6da611d
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,7 @@ class MicrosoftKbChecker
|
||||||
|
|
||||||
def select_os(json)
|
def select_os(json)
|
||||||
json.dig('affectedProducts').select do |os|
|
json.dig('affectedProducts').select do |os|
|
||||||
os['name'] == options[:os_name]
|
os.values_at('name', 'platform').include? options[:os_name]
|
||||||
end.first
|
end.first
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -118,6 +118,7 @@ class MicrosoftKbChecker
|
||||||
end.flatten.reject! { |kb| kb == '' }
|
end.flatten.reject! { |kb| kb == '' }
|
||||||
{
|
{
|
||||||
os_name: os_json['name'],
|
os_name: os_json['name'],
|
||||||
|
cve_id: options[:cve_id],
|
||||||
kbs: kbs,
|
kbs: kbs,
|
||||||
supersedence_kb: supersedence
|
supersedence_kb: supersedence
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue