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

[vsphere] Prefer Class#name to Class#to_s.

This commit is contained in:
Kevin Menard 2015-10-21 08:01:49 -04:00
parent ffcf2b0345
commit c097faecc9

View file

@ -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