mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
vsphere: Allow listing virtual port groups
This has had limited testing and may not be perfect, but in the current situation loading a DistributedVirtualPortgroup into the model will die because the backing has no property network.
This commit is contained in:
parent
26b5805852
commit
3ac6847971
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ module Fog
|
|||
{
|
||||
:name => nic.deviceInfo.label,
|
||||
:mac => nic.macAddress,
|
||||
:network => nic.backing.network.name,
|
||||
:network => nic.backing.respond_to?("network") ? nic.backing.network.name : nic.backing.port.portgroupKey,
|
||||
:status => nic.connectable.status,
|
||||
:summary => nic.deviceInfo.summary,
|
||||
:type => nic.class,
|
||||
|
|
Loading…
Add table
Reference in a new issue