Skip to content

Commit

Permalink
Merge pull request #14 from cloudflare/fix-cables
Browse files Browse the repository at this point in the history
fix cable db selection
  • Loading branch information
matthieugouel authored Jul 17, 2024
2 parents 7556d61 + f18014c commit 8fda078
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 8fda078

Please sign in to comment.