From 56e6b935bbb7cf905b57815cbd79fde1f82a59a5 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 11 Dec 2024 15:05:22 +0530 Subject: [PATCH] feat: resolved string being empty --- internal/provider/resource/integration_aws_parameter_store.go | 4 ++-- internal/provider/resource/integration_aws_secrets_manager.go | 2 +- internal/provider/resource/integration_circleci.go | 2 +- internal/provider/resource/integration_databricks.go | 2 +- internal/provider/resource/integration_gcp_secret_manager.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/provider/resource/integration_aws_parameter_store.go b/internal/provider/resource/integration_aws_parameter_store.go index 4567262..fa6c540 100644 --- a/internal/provider/resource/integration_aws_parameter_store.go +++ b/internal/provider/resource/integration_aws_parameter_store.go @@ -407,7 +407,7 @@ func (r *IntegrationAWSParameterStoreResource) Update(ctx context.Context, req r updateIntegrationAuthRequest := infisical.UpdateIntegrationAuthRequest{ Integration: infisical.IntegrationAuthTypeAwsSecretsManager, - IntegrationAuthId: plan.IntegrationAuthID.String(), + IntegrationAuthId: plan.IntegrationAuthID.ValueString(), } if authMethod == pkg.AwsAuthMethodAccessKey { updateIntegrationAuthRequest.AccessId = plan.AccessKeyID.ValueString() @@ -442,7 +442,7 @@ func (r *IntegrationAWSParameterStoreResource) Update(ctx context.Context, req r Environment: plan.Environment.ValueString(), SecretPath: plan.SecretPath.ValueString(), Region: plan.AWSRegion.ValueString(), - Path: plan.AWSPath.String(), + Path: plan.AWSPath.ValueString(), }) if err != nil { diff --git a/internal/provider/resource/integration_aws_secrets_manager.go b/internal/provider/resource/integration_aws_secrets_manager.go index d268ccf..36fbcd8 100644 --- a/internal/provider/resource/integration_aws_secrets_manager.go +++ b/internal/provider/resource/integration_aws_secrets_manager.go @@ -457,7 +457,7 @@ func (r *IntegrationAWSSecretsManagerResource) Update(ctx context.Context, req r updateIntegrationAuthRequest := infisical.UpdateIntegrationAuthRequest{ Integration: infisical.IntegrationAuthTypeAwsSecretsManager, - IntegrationAuthId: plan.IntegrationAuthID.String(), + IntegrationAuthId: plan.IntegrationAuthID.ValueString(), } authMethod, err := pkg.ValidateAwsInputCredentials(plan.AccessKeyID, plan.SecretAccessKey, plan.AssumeRoleArn) diff --git a/internal/provider/resource/integration_circleci.go b/internal/provider/resource/integration_circleci.go index db58da0..dae3ba2 100644 --- a/internal/provider/resource/integration_circleci.go +++ b/internal/provider/resource/integration_circleci.go @@ -255,7 +255,7 @@ func (r *IntegrationCircleCIResource) Update(ctx context.Context, req resource.U _, err := r.client.UpdateIntegrationAuth(infisical.UpdateIntegrationAuthRequest{ Integration: infisical.IntegrationAuthTypeCircleCi, - IntegrationAuthId: plan.IntegrationAuthID.String(), + IntegrationAuthId: plan.IntegrationAuthID.ValueString(), AccessToken: plan.CircleCIToken.ValueString(), }) if err != nil { diff --git a/internal/provider/resource/integration_databricks.go b/internal/provider/resource/integration_databricks.go index bb4df4b..767cd41 100644 --- a/internal/provider/resource/integration_databricks.go +++ b/internal/provider/resource/integration_databricks.go @@ -252,7 +252,7 @@ func (r *IntegrationDatabricksResource) Update(ctx context.Context, req resource _, err := r.client.UpdateIntegrationAuth(infisical.UpdateIntegrationAuthRequest{ Integration: infisical.IntegrationAuthTypeDatabricks, - IntegrationAuthId: plan.IntegrationAuthID.String(), + IntegrationAuthId: plan.IntegrationAuthID.ValueString(), AccessToken: plan.DatabricksAccessToken.ValueString(), URL: plan.DatabricksHostURL.ValueString(), }) diff --git a/internal/provider/resource/integration_gcp_secret_manager.go b/internal/provider/resource/integration_gcp_secret_manager.go index 1a99c72..aa193b9 100644 --- a/internal/provider/resource/integration_gcp_secret_manager.go +++ b/internal/provider/resource/integration_gcp_secret_manager.go @@ -367,7 +367,7 @@ func (r *IntegrationGCPSecretManagerResource) Update(ctx context.Context, req re _, err := r.client.UpdateIntegrationAuth(infisical.UpdateIntegrationAuthRequest{ Integration: infisical.IntegrationAuthTypeGcpSecretManager, - IntegrationAuthId: plan.IntegrationAuthID.String(), + IntegrationAuthId: plan.IntegrationAuthID.ValueString(), RefreshToken: plan.ServiceAccountJson.ValueString(), })