mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[opennebula] fix for #3003 - soft load the opennebula gem
This commit is contained in:
parent
c71e3e40c7
commit
60bba16fe9
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,5 @@
|
|||
require 'opennebula'
|
||||
require 'fog/opennebula/core'
|
||||
|
||||
|
||||
module Fog
|
||||
module Compute
|
||||
class OpenNebula < Fog::Service
|
||||
|
@ -34,6 +32,7 @@ module Fog
|
|||
class Mock
|
||||
include Collections
|
||||
def initialize(options={})
|
||||
require 'opennebula'
|
||||
end
|
||||
|
||||
def client
|
||||
|
@ -49,6 +48,7 @@ module Fog
|
|||
end
|
||||
|
||||
def initialize(options={})
|
||||
require 'opennebula'
|
||||
@client = ::OpenNebula::Client.new("#{options[:opennebula_username]}:#{options[:opennebula_password]}", options[:opennebula_endpoint])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue