mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-13 13:17:39 +03:00
(cherry picked from commit 6450fb252fab04c19068316ee4da3d230b36c89c)
This commit is contained in:
parent
1926846414
commit
35917c1682
@ -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]/)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user