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'
|
require 'fog/opennebula/core'
|
||||||
|
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module Compute
|
module Compute
|
||||||
class OpenNebula < Fog::Service
|
class OpenNebula < Fog::Service
|
||||||
|
@ -34,6 +32,7 @@ module Fog
|
||||||
class Mock
|
class Mock
|
||||||
include Collections
|
include Collections
|
||||||
def initialize(options={})
|
def initialize(options={})
|
||||||
|
require 'opennebula'
|
||||||
end
|
end
|
||||||
|
|
||||||
def client
|
def client
|
||||||
|
@ -49,6 +48,7 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(options={})
|
def initialize(options={})
|
||||||
|
require 'opennebula'
|
||||||
@client = ::OpenNebula::Client.new("#{options[:opennebula_username]}:#{options[:opennebula_password]}", options[:opennebula_endpoint])
|
@client = ::OpenNebula::Client.new("#{options[:opennebula_username]}:#{options[:opennebula_password]}", options[:opennebula_endpoint])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue