mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-12 09:17:41 +03:00
parent
ef231b8c0d
commit
878e2bffd4
@ -77,7 +77,8 @@ class OneDBBacKEnd
|
|||||||
elsif !db_exists?
|
elsif !db_exists?
|
||||||
# If the DB doesn't have db_version table, it means it is empty or a 2.x
|
# 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 " <<
|
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
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@ -184,10 +185,11 @@ class OneDBBacKEnd
|
|||||||
@db.fetch("SELECT * FROM user_pool WHERE oid=0") { |row|
|
@db.fetch("SELECT * FROM user_pool WHERE oid=0") { |row|
|
||||||
found = true
|
found = true
|
||||||
}
|
}
|
||||||
rescue
|
rescue StandardError
|
||||||
|
found = false
|
||||||
end
|
end
|
||||||
|
|
||||||
return found
|
found
|
||||||
end
|
end
|
||||||
|
|
||||||
def init_log_time()
|
def init_log_time()
|
||||||
|
Loading…
Reference in New Issue
Block a user