From c097faecc941310cece56d6de4b982f632a8e55c Mon Sep 17 00:00:00 2001 From: Kevin Menard Date: Wed, 21 Oct 2015 08:01:49 -0400 Subject: [PATCH] [vsphere] Prefer Class#name to Class#to_s. --- lib/fog/vsphere/requests/compute/list_networks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/vsphere/requests/compute/list_networks.rb b/lib/fog/vsphere/requests/compute/list_networks.rb index 27786a29e..b2aee8ac3 100644 --- a/lib/fog/vsphere/requests/compute/list_networks.rb +++ b/lib/fog/vsphere/requests/compute/list_networks.rb @@ -24,7 +24,7 @@ module Fog :name => network.name, :accessible => network.summary.accessible, :datacenter => datacenter, - :virtualswitch => network.class.to_s == "DistributedVirtualPortgroup" ? network.config.distributedVirtualSwitch.name : nil + :virtualswitch => network.class.name == "DistributedVirtualPortgroup" ? network.config.distributedVirtualSwitch.name : nil } end end