From a65cdad1aa581fb9afcec6546314c30eec56ea88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Lipt=C3=A1k?= Date: Sun, 19 Nov 2017 15:39:10 -0500 Subject: [PATCH] Correct GetInternalDataGroupRecords processing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gábor Lipták --- ltm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ltm.go b/ltm.go index dd0eccb..90dd25d 100644 --- a/ltm.go +++ b/ltm.go @@ -1554,13 +1554,13 @@ func (b *BigIP) ModifyInternalDataGroupRecords(name string, records *[]DataGroup // Get the internal data group records for a named internal data group func (b *BigIP) GetInternalDataGroupRecords(name string) (*[]DataGroupRecord, error) { - var dataGroupRecords []DataGroupRecord - err, _ := b.getForEntity(&dataGroupRecords, uriLtm, uriDatagroup, uriInternal, name) + var dataGroup DataGroup + err, _ := b.getForEntity(&dataGroup, uriLtm, uriDatagroup, uriInternal, name) if err != nil { return nil, err } - return &dataGroupRecords, nil + return &dataGroup.Records, nil } // Pools returns a list of pools.