diff --git a/apier/tpdestinations.go b/apier/tpdestinations.go index b623fa35a..0fb9e310d 100644 --- a/apier/tpdestinations.go +++ b/apier/tpdestinations.go @@ -50,8 +50,8 @@ type AttrDestination struct { Prefixes []string } -func (self *Apier) GetDestination(tag string, reply *AttrDestination) error { - if dst, err := self.Getter.GetDestination(tag); err != nil { +func (self *Apier) GetDestination(attr *AttrDestination, reply *AttrDestination) error { + if dst, err := self.Getter.GetDestination(attr.Id); err != nil { return errors.New(utils.ERR_NOT_FOUND) } else { reply.Id = dst.Id diff --git a/docs/apicalls.rst b/docs/apicalls.rst index 21b034f39..afeab9871 100644 --- a/docs/apicalls.rst +++ b/docs/apicalls.rst @@ -314,9 +314,10 @@ Gets the destinations for the specified tag. Prefixes []string } +Only the Id filed must be filled for get operation. Example - GetDestination(tag string, reply \*AttrDestination) + GetDestination(attr \*AttrDestination, reply \*AttrDestination) SetDestination ++++++++++++++