mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Fix some problems with the DB initialization.
git-svn-id: http://svn.opennebula.org/one/trunk@845 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
1 parent
798a924458
commit
5bb535f6dd
1 file changed
+5
-5
@@ -26,11 +26,11 @@ module OpenNebula
|
||||
def initialize(rm_db=nil)
|
||||
# Seems that database should be opened before defining models
|
||||
# TODO: fix this
|
||||
if rm_db
|
||||
DB=Sequel.sqlite(rm_db)
|
||||
else
|
||||
DB=Sequel.sqlite('database.db')
|
||||
end
|
||||
#if rm_db
|
||||
# DB=Sequel.sqlite(rm_db)
|
||||
#else
|
||||
# DB=Sequel.sqlite('database.db')
|
||||
#end
|
||||
|
||||
require 'image'
|
||||
|
||||
|
||||
Reference in new issue
Block a user