From e3bf139f1b6f38735ac2ac303c55be84938ec473 Mon Sep 17 00:00:00 2001 From: slivik Date: Sun, 2 Aug 2015 21:02:09 +0200 Subject: [PATCH] Intermediate foldes in DC/Cluster tree Create VM failed when there was a folder between Datacenter and Clusters. This bug seemed to be a typo only. --- lib/fog/vsphere/requests/compute/list_clusters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/vsphere/requests/compute/list_clusters.rb b/lib/fog/vsphere/requests/compute/list_clusters.rb index 78242c198..3add82628 100644 --- a/lib/fog/vsphere/requests/compute/list_clusters.rb +++ b/lib/fog/vsphere/requests/compute/list_clusters.rb @@ -41,7 +41,7 @@ module Fog def cluster_path(cluster, datacenter_name) datacenter = find_raw_datacenter(datacenter_name) - cluster.pretty_path.gsub(/(#{datacenter.name}|#{datacenter.hostFolder.name})\//,'') + cluster.pretty_path.gsub(/(#{datacenter_name}|#{datacenter.hostFolder.name})\//,'') end end