Skip to content

Commit

Permalink
fix cable db selection
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieugouel committed Jul 17, 2024
1 parent 7556d61 commit f18014c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/connector/netbox/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f18014c

Please sign in to comment.