Skip to content

Commit

Permalink
Fix typo in UpdateCNAMERecord function and add function to IBObjectMa…
Browse files Browse the repository at this point in the history
…nager interface (#127)
gfenn-newbury authored May 17, 2021
1 parent c0503d5 commit fec9794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion object_manager.go
Original file line number Diff line number Diff line change
@@ -46,6 +46,7 @@ type IBObjectManager interface {
UpdateHostRecord(hostRref string, ipAddr string, macAddress string, vmID string, vmName string) (string, error)
UpdateNetworkViewEA(ref string, addEA EA, removeEA EA) error
UpdateARecord(aRecordRef string, netview string, recordname string, cidr string, ipAddr string, ea EA) (*RecordA, error)
UpdateCNAMERecord(cnameRef string, canonical string, recordname string, dnsview string, ea EA) (*RecordCNAME, error)
}

type ObjectManager struct {
@@ -589,7 +590,7 @@ func (objMgr *ObjectManager) GetCNAMERecordByRef(ref string) (*RecordCNAME, erro
return recordCNAME, err
}

func (objMgr *ObjectManager) UpdateCNAMERecord(cnameRef string, canonical string, recordname, string, dnsview string, ea EA) (*RecordCNAME, error) {
func (objMgr *ObjectManager) UpdateCNAMERecord(cnameRef string, canonical string, recordname string, dnsview string, ea EA) (*RecordCNAME, error) {
updateRecordCNAME := NewRecordCNAME(RecordCNAME{Ref: cnameRef})
updateRecordCNAME.Canonical = canonical
updateRecordCNAME.Name = recordname

0 comments on commit fec9794

Please sign in to comment.