From 1df67da16614c9c47d7dec0a60e7cce1454daec2 Mon Sep 17 00:00:00 2001 From: artaasadi Date: Fri, 29 Nov 2024 11:53:49 +0100 Subject: [PATCH] fix: fix describe single function --- pkg/describer/resources.go | 2 +- pkg/sdk/models/resource_type.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/describer/resources.go b/pkg/describer/resources.go index fa52865e..f8b16fe2 100755 --- a/pkg/describer/resources.go +++ b/pkg/describer/resources.go @@ -94,5 +94,5 @@ func describeSingle(ctx context.Context, logger *zap.Logger, accountCfg configs. } ctx = describer.WithLogger(ctx, logger) - return resourceTypeObject.GetDescriber(ctx, accountCfg, triggerType, resourceID, additionalParameters) + return resourceTypeObject.GetDescriber(ctx, accountCfg, triggerType, additionalParameters, resourceID) } diff --git a/pkg/sdk/models/resource_type.go b/pkg/sdk/models/resource_type.go index adb80425..51183a9c 100644 --- a/pkg/sdk/models/resource_type.go +++ b/pkg/sdk/models/resource_type.go @@ -9,7 +9,7 @@ import ( // any types are used to load your provider configuration. type ResourceDescriber func(context.Context, configs.IntegrationCredentials, enums.DescribeTriggerType, map[string]string, *StreamSender) ([]Resource, error) -type SingleResourceDescriber func(context.Context, configs.IntegrationCredentials, enums.DescribeTriggerType, string, map[string]string) (*Resource, error) +type SingleResourceDescriber func(context.Context, configs.IntegrationCredentials, enums.DescribeTriggerType, map[string]string, string) (*Resource, error) type ResourceType struct { IntegrationType integration.Type