From b2ccd3466780d5fec52d7e75e2bcb7ba085d780e Mon Sep 17 00:00:00 2001 From: ShocOne <62835948+ShocOne@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:32:12 +0000 Subject: [PATCH] fix: correct function name for creating log flushing tasks in Jamf Pro API --- .../log_flushing/QueueLogFlushingTask/QueueLogFlushingTask.go | 2 +- sdk/jamfpro/jamfproapi_log_flushing.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/log_flushing/QueueLogFlushingTask/QueueLogFlushingTask.go b/examples/log_flushing/QueueLogFlushingTask/QueueLogFlushingTask.go index 40a596c1c..762ba2d55 100644 --- a/examples/log_flushing/QueueLogFlushingTask/QueueLogFlushingTask.go +++ b/examples/log_flushing/QueueLogFlushingTask/QueueLogFlushingTask.go @@ -26,7 +26,7 @@ func main() { } // Call function to create log flushing task - createdTask, err := client.CreateLogFlushingTask(newTask) + createdTask, err := client.QueueLogFlushingTask(newTask) if err != nil { log.Fatalf("Error creating log flushing task: %v", err) } diff --git a/sdk/jamfpro/jamfproapi_log_flushing.go b/sdk/jamfpro/jamfproapi_log_flushing.go index ca4b22500..9907fecc2 100644 --- a/sdk/jamfpro/jamfproapi_log_flushing.go +++ b/sdk/jamfpro/jamfproapi_log_flushing.go @@ -94,8 +94,8 @@ func (c *Client) GetLogFlushingSettings() (*ResponseLogFlushingSettings, error) return &out, nil } -// QueueLogFlushingTaskLogFlushingTask creates a new log flushing task in Jamf Pro -func (c *Client) QueueLogFlushingTaskLogFlushingTask(task *ResourceLogFlushingTask) (*ResponseLogFlushingTaskCreated, error) { +// QueueLogFlushingTaskcreates a new log flushing task in Jamf Pro +func (c *Client) QueueLogFlushingTask(task *ResourceLogFlushingTask) (*ResponseLogFlushingTaskCreated, error) { endpoint := fmt.Sprintf("%s/task", uriLogFlushing) var response ResponseLogFlushingTaskCreated