From 60bba16fe962bc9dad0dccf636b69f70ecc5cef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Achim=20Lederm=C3=BCller?= Date: Tue, 17 Jun 2014 18:35:33 +0200 Subject: [PATCH] [opennebula] fix for #3003 - soft load the opennebula gem --- lib/fog/opennebula/compute.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/opennebula/compute.rb b/lib/fog/opennebula/compute.rb index 64820f9d5..4f94e794f 100644 --- a/lib/fog/opennebula/compute.rb +++ b/lib/fog/opennebula/compute.rb @@ -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