From fbce47b429e11ec029397179be521a8e703a5ca2 Mon Sep 17 00:00:00 2001 From: Paul Thornthwaite Date: Wed, 16 Jan 2013 16:17:50 +0000 Subject: [PATCH] [vsphere|compute] Reverts change of connection As raised https://github.com/fog/fog/commit/e8630a00831cc17d61d48af9501773002dccc165#commitcomment-2445605 --- lib/fog/vsphere/requests/compute/get_virtual_machine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/vsphere/requests/compute/get_virtual_machine.rb b/lib/fog/vsphere/requests/compute/get_virtual_machine.rb index afb0a89b0..63578b19c 100644 --- a/lib/fog/vsphere/requests/compute/get_virtual_machine.rb +++ b/lib/fog/vsphere/requests/compute/get_virtual_machine.rb @@ -12,7 +12,7 @@ module Fog vm = case id # UUID based when /[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/ - @service.searchIndex.FindByUuid :uuid => id, :vmSearch => true, :instanceUuid => true, :datacenter => dc + @connection.searchIndex.FindByUuid :uuid => id, :vmSearch => true, :instanceUuid => true, :datacenter => dc else # try to find based on VM name if dc