Commit cbdec73f authored by Valery Sizov's avatar Valery Sizov

Proper ES version check

parent c65f20ef
......@@ -991,7 +991,7 @@ namespace :gitlab do
version = client.info["version"]["number"]
# The version is greater or equal to 2.4.0
if version.delete('.').to_i >= 240
if Gitlab::VersionInfo.parse(version) >= Gitlab::VersionInfo.new(2, 4, 0)
puts "yes (#{version})".color(:green)
else
puts "no".color(:red)
......
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