From becd7cefa87e8128917694c3adef0071f4071c9e Mon Sep 17 00:00:00 2001 From: ezgidemirel Date: Tue, 18 Jan 2022 16:51:48 +0300 Subject: [PATCH] Fix function name in documentation Signed-off-by: ezgidemirel --- docs/configuring-a-resource.md | 2 +- docs/generating-a-provider.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/configuring-a-resource.md b/docs/configuring-a-resource.md index 917f0968..179bf9e9 100644 --- a/docs/configuring-a-resource.md +++ b/docs/configuring-a-resource.md @@ -211,7 +211,7 @@ func getNameFromFullyQualifiedID(tfstate map[string]interface{}) (string, error) return words[len(words)-1], nil } -func getFullyQualifiedIDfunc(ctx context.Context, externalName string, parameters map[string]interface{}, providerConfig map[string]interface{}) (string, error) +func getFullyQualifiedIDfunc(ctx context.Context, externalName string, parameters map[string]interface{}, providerConfig map[string]interface{}) (string, error) { subID, ok := providerConfig["subscription_id"] if !ok { return "", errors.Errorf(ErrFmtNoAttribute, "subscription_id") diff --git a/docs/generating-a-provider.md b/docs/generating-a-provider.md index 925c9c14..39d5840b 100644 --- a/docs/generating-a-provider.md +++ b/docs/generating-a-provider.md @@ -168,7 +168,7 @@ be quite similar for any other Terraform provider. import "github.com/crossplane/terrajet/pkg/config" // Configure configures individual resources by adding custom ResourceConfigurators. - func Customize(p *config.Provider) { + func Configure(p *config.Provider) { p.AddResourceConfigurator("github_repository", func(r *config.Resource) { // we need to override the default group that terrajet generated for @@ -185,7 +185,7 @@ be quite similar for any other Terraform provider. import "github.com/crossplane/terrajet/pkg/config" - func Customize(p *config.Provider) { + func Configure(p *config.Provider) { p.AddResourceConfigurator("github_branch", func(r *config.Resource) { // we need to override the default group that terrajet generated for @@ -225,8 +225,8 @@ be quite similar for any other Terraform provider. ... for _, configure := range []func(provider *tjconfig.Provider){ add custom config functions - + repository.Customize, - + branch.Customize, + + repository.Configure, + + branch.Configure, } { configure(pc) }