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:
Rubén S. Montero committed 2009-10-11 22:24:13 +00:00
1 parent 798a924458
commit 5bb535f6dd
1 file changed
+5 -5
+5 -5
View File
@@ -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'