1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[vsphere|compute] Reverts change of connection

As raised e8630a0083 (commitcomment-2445605)
This commit is contained in:
Paul Thornthwaite 2013-01-16 16:17:50 +00:00
parent 97a7a1faf8
commit fbce47b429

View file

@ -12,7 +12,7 @@ module Fog
vm = case id vm = case id
# UUID based # 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}/ 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 else
# try to find based on VM name # try to find based on VM name
if dc if dc