1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

B #2248: change error message (#3684)

This commit is contained in:
Alejandro Huertas Herrero 2019-09-12 11:45:30 +02:00 committed by Ruben S. Montero
parent ef231b8c0d
commit 878e2bffd4

View File

@ -77,7 +77,8 @@ class OneDBBacKEnd
elsif !db_exists?
# If the DB doesn't have db_version table, it means it is empty or a 2.x
raise "Database schema does not look to be created by " <<
"OpenNebula: table user_pool is missing or empty."
"OpenNebula: table user_pool is missing or empty, " <<
"oneadmin user must always exist."
end
begin
@ -184,10 +185,11 @@ class OneDBBacKEnd
@db.fetch("SELECT * FROM user_pool WHERE oid=0") { |row|
found = true
}
rescue
rescue StandardError
found = false
end
return found
found
end
def init_log_time()