diff --git a/pkg/connector/netbox/database.go b/pkg/connector/netbox/database.go index 371c62e..77dd1a0 100644 --- a/pkg/connector/netbox/database.go +++ b/pkg/connector/netbox/database.go @@ -173,7 +173,7 @@ func (db *database) getIPAddresses() ([]*model.IpamIpaddress, error) { func (db *database) getCables() ([]*model.DcimCable, error) { cables := make([]*model.DcimCable, 0) - err := db.pgdb.Model(&cables).Select() + err := db.pgdb.Model(&cables).Relation("Terminations").Select() if err != nil { return nil, fmt.Errorf("select failed: %v", err) }