1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-13 13:17:39 +03:00

B #5579: Fix OpenNebula Version on Sunstone (#1531)

(cherry picked from commit 6450fb252fab04c19068316ee4da3d230b36c89c)
This commit is contained in:
Frederick Borges 2021-10-19 13:53:55 +02:00 committed by Tino Vazquez
parent 1926846414
commit 35917c1682
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -281,7 +281,11 @@ get '/support/check/version' do
doc = Nokogiri::HTML(html)
values = doc.xpath('//table/tr/td/a/text()')
data = values.map {|value| value.to_s.delete('/') }
data = values.map do |value|
if value.to_s.split('.')[1].to_i.even?
value.to_s.delete('/')
end
end
data = data.grep(/[0-9]/)