From e9623b746723f2b5931db7589b58252f9f0f3384 Mon Sep 17 00:00:00 2001 From: Rajat Bajaj Date: Wed, 9 Oct 2024 17:34:12 +0530 Subject: [PATCH] minor update to version --- internal/cli/terraform.go | 2 +- internal/cli/terraform_fetcher.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/cli/terraform.go b/internal/cli/terraform.go index e25d181e..973633b2 100644 --- a/internal/cli/terraform.go +++ b/internal/cli/terraform.go @@ -335,7 +335,7 @@ func generateTerraformResourceConfig(ctx context.Context, outputDIR string) erro installer := &releases.ExactVersion{ Product: product.Terraform, - Version: version.Must(version.NewVersion("1.8.0")), + Version: version.Must(version.NewVersion("1.5.0")), InstallDir: absoluteOutputPath, } diff --git a/internal/cli/terraform_fetcher.go b/internal/cli/terraform_fetcher.go index ccc66967..c908b7b8 100644 --- a/internal/cli/terraform_fetcher.go +++ b/internal/cli/terraform_fetcher.go @@ -305,15 +305,15 @@ func (f *flowResourceFetcher) FetchData(ctx context.Context) (importDataList, er func (f *flowVaultConnectionResourceFetcher) FetchData(ctx context.Context) (importDataList, error) { var data importDataList - flowVaultConnectionList, err := f.api.Flow.List(ctx) + flowVaultConnectionList, err := f.api.FlowVaultConnection.GetConnectionList(ctx) if err != nil { return data, err } - for _, flow := range flowVaultConnectionList.Flows { + for _, flowVaultConnection := range flowVaultConnectionList.Connections { data = append(data, importDataItem{ - ResourceName: "auth0_flow_vault_connection." + sanitizeResourceName(flow.GetName()), - ImportID: flow.GetID(), + ResourceName: "auth0_flow_vault_connection." + sanitizeResourceName(flowVaultConnection.GetName()), + ImportID: flowVaultConnection.GetID(), }) }