From b5ada773eed309d01e1f1d171820ef492d538888 Mon Sep 17 00:00:00 2001 From: marcotuna Date: Mon, 14 Jan 2019 17:58:56 +0000 Subject: [PATCH] Update exportSystemsToCSV.go Fix apiClientV2.SystemGroupsApi.GroupsSystemGet(). map[string]interface{} was missing in the function call. --- .../ExportSystemsToCSV/exportSystemsToCSV.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-utils/JumpCloud_API_Go_Examples/ExportSystemsToCSV/exportSystemsToCSV.go b/api-utils/JumpCloud_API_Go_Examples/ExportSystemsToCSV/exportSystemsToCSV.go index 440704830..04beba56d 100644 --- a/api-utils/JumpCloud_API_Go_Examples/ExportSystemsToCSV/exportSystemsToCSV.go +++ b/api-utils/JumpCloud_API_Go_Examples/ExportSystemsToCSV/exportSystemsToCSV.go @@ -34,7 +34,7 @@ func getSystemGroupsforSystem(apiClientV2 *jcapiv2.APIClient, auth context.Conte // add the retrieved system groups names to the list for the current system: for _, graph := range graphs { // get the details of the current system group: - systemGroup, _, err := apiClientV2.SystemGroupsApi.GroupsSystemGet(auth, graph.Id, contentType, accept) + systemGroup, _, err := apiClientV2.SystemGroupsApi.GroupsSystemGet(auth, graph.Id, contentType, accept, optionals) if err != nil { // just log a message and skip the system group if there's an error retrieving details: log.Printf("Could not retrieve info for system group ID %s, err='%s'\n", graph.Id, err)