Skip to content

Commit

Permalink
feat: resolved string being empty
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilmhdh committed Dec 11, 2024
1 parent 54e019a commit 56e6b93
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions internal/provider/resource/integration_aws_parameter_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource/integration_circleci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource/integration_databricks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
})

Expand Down

0 comments on commit 56e6b93

Please sign in to comment.