From a2bc8869301d0bd682d753814006a7513f909225 Mon Sep 17 00:00:00 2001 From: Alex Hung Date: Mon, 29 Apr 2024 15:37:07 -0700 Subject: [PATCH] Fix incorrect usage func names --- pkg/xray/resource/resource_xray_workers_count.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/xray/resource/resource_xray_workers_count.go b/pkg/xray/resource/resource_xray_workers_count.go index 057716b3..e8edf8c1 100644 --- a/pkg/xray/resource/resource_xray_workers_count.go +++ b/pkg/xray/resource/resource_xray_workers_count.go @@ -358,7 +358,7 @@ func (r *WorkersCountResource) Create(ctx context.Context, req resource.CreateRe } func (r *WorkersCountResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - go util.SendUsageResourceCreate(ctx, r.ProviderData.Client, r.ProviderData.ProductId, r.TypeName) + go util.SendUsageResourceRead(ctx, r.ProviderData.Client, r.ProviderData.ProductId, r.TypeName) var state WorkersCountResourceModel // Read Terraform prior state data into the model @@ -393,7 +393,7 @@ func (r *WorkersCountResource) Read(ctx context.Context, req resource.ReadReques } func (r *WorkersCountResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - go util.SendUsageResourceCreate(ctx, r.ProviderData.Client, r.ProviderData.ProductId, r.TypeName) + go util.SendUsageResourceUpdate(ctx, r.ProviderData.Client, r.ProviderData.ProductId, r.TypeName) var plan WorkersCountResourceModel @@ -430,7 +430,7 @@ func (r *WorkersCountResource) Update(ctx context.Context, req resource.UpdateRe // Delete No delete functionality provided by API for the settings or DB sync call. // This function will remove the object from the Terraform state func (r *WorkersCountResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - go util.SendUsageResourceCreate(ctx, r.ProviderData.Client, r.ProviderData.ProductId, r.TypeName) + go util.SendUsageResourceDelete(ctx, r.ProviderData.Client, r.ProviderData.ProductId, r.TypeName) resp.Diagnostics.AddWarning( "Workers Count resource does not support delete",