diff --git a/udr/udr.go b/udr/udr.go index a79460a..d514818 100644 --- a/udr/udr.go +++ b/udr/udr.go @@ -37,13 +37,15 @@ type UDRService struct { } // PostRecords takes a set of UDRRecords and posts them to the UDR endpoint -func (u *UDRService) PostRecords(records []UDRRecord) (success bool, err error) { +func (u *UDRService) PostRecords(records []UDRRecord) (success bool, recordsWritten int, err error) { success = true + recordsWritten = 0 for _, r := range records { success, err = u.PostRecord(r) if !success { return } + recordsWritten++ } return }