1
0
Fork 0
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:
Achim Ledermüller 2014-06-17 18:35:33 +02:00
parent c71e3e40c7
commit 60bba16fe9

View file

@ -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