1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Fix version reporting

This commit is contained in:
Jaime Melis 2016-06-28 21:44:30 +02:00
parent 254e8f050c
commit 58f56f7a23

View File

@ -511,8 +511,8 @@ get '/version' do
end
end
if !version[:version] || version[:version].empty?
version[:version] = OpenNebula::VERSION
if !version["version"] || version["version"].empty?
version["version"] = OpenNebula::VERSION
end
[200, version.to_json]