Skip to content

Commit

Permalink
fix(vmware): fixes #129
Browse files Browse the repository at this point in the history
Co-authored-by: Juri Kononov <[email protected]>
  • Loading branch information
bl4ko and TaLoN1x committed May 4, 2024
1 parent a33589d commit 3c3ce56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/source/vmware/vmware_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (vc *VmwareSource) syncNetworks(nbi *inventory.NetboxInventory) error {
if err != nil {
return fmt.Errorf("vlanTenant: %s", err)
}
if len(dvpg.VlanIDs) == 1 && len(dvpg.VlanIDRanges) == 0 {
if len(dvpg.VlanIDs) == 1 && len(dvpg.VlanIDRanges) == 0 && dvpg.VlanIDs[0] != 0 {

Check warning on line 31 in internal/source/vmware/vmware_sync.go

View check run for this annotation

Codecov / codecov/patch

internal/source/vmware/vmware_sync.go#L31

Added line #L31 was not covered by tests
_, err := nbi.AddVlan(vc.Ctx, &objects.Vlan{
NetboxObject: objects.NetboxObject{
Tags: vc.Config.SourceTags,
Expand Down

0 comments on commit 3c3ce56

Please sign in to comment.