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:
parent
ffcf2b0345
commit
c097faecc9
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ module Fog
|
||||||
:name => network.name,
|
:name => network.name,
|
||||||
:accessible => network.summary.accessible,
|
:accessible => network.summary.accessible,
|
||||||
:datacenter => datacenter,
|
: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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue