Skip to content

Commit

Permalink
add missing field (virtual_switch_name) in read
Browse files Browse the repository at this point in the history
  • Loading branch information
Waquid Valiya Peedikakkal committed Sep 6, 2020
1 parent 92a8849 commit 6455737
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vsphere/host_port_group_structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func expandHostPortGroupSpec(d *schema.ResourceData) *types.HostPortGroupSpec {
// the passed in ResourceData.
func flattenHostPortGroupSpec(d *schema.ResourceData, obj *types.HostPortGroupSpec) error {
d.Set("vlan_id", obj.VlanId)
d.Set("virtual_switch_name", obj.VswitchName)
if err := flattenHostNetworkPolicy(d, &obj.Policy); err != nil {
return err
}
Expand Down

0 comments on commit 6455737

Please sign in to comment.