Skip to content

Commit

Permalink
Added an error message (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
anagha-infoblox authored Dec 8, 2021
1 parent 741a1cd commit 83b1dd1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions object_manager_cname-record.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ func (objMgr *ObjectManager) CreateCNAMERecord(
recordCNAME := NewRecordCNAME(dnsview, canonical, recordname, useTtl, ttl, comment, eas, "")

ref, err := objMgr.connector.CreateObject(recordCNAME)
if err != nil {
return nil, err
}
recordCNAME, err = objMgr.GetCNAMERecordByRef(ref)
if err != nil {
return nil, err
}
return recordCNAME, err
}

Expand Down

0 comments on commit 83b1dd1

Please sign in to comment.