Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Fix function name in documentation #202

Merged
merged 1 commit into from
Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/configuring-a-resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
8 changes: 4 additions & 4 deletions docs/generating-a-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down