diff --git a/lib/fog/ovirt/compute.rb b/lib/fog/ovirt/compute.rb index a181dcbf9..ce0e1216d 100644 --- a/lib/fog/ovirt/compute.rb +++ b/lib/fog/ovirt/compute.rb @@ -77,7 +77,11 @@ module Fog end private - attr_reader :client + + def client + return @client if defined?(@client) + end + #read mocks xml def read_xml(file_name) file_path = File.join(File.dirname(__FILE__),"requests","compute","mock_files",file_name) @@ -103,7 +107,10 @@ module Fog end private - attr_reader :client + + def client + @client + end end end end