mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
bug #1953: bug in sqlite detection for onedb
This commit is contained in:
1 parent
62efd7e143
commit
e67136d939
1 file changed
+3
-3
+3
-3
@@ -20,10 +20,10 @@ class OneDB
|
||||
def initialize(ops)
|
||||
if ops[:backend] == :sqlite
|
||||
begin
|
||||
require 'sqlite3-ruby'
|
||||
require 'sqlite3'
|
||||
rescue LoadError
|
||||
STDERR.puts "Ruby gem sqlite3-ruby is needed for this operation:"
|
||||
STDERR.puts " $ sudo gem install sqlite3-ruby"
|
||||
STDERR.puts "Ruby gem sqlite3 is needed for this operation:"
|
||||
STDERR.puts " $ sudo gem install sqlite3"
|
||||
exit -1
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user