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

Commit

Permalink
Merge pull request #202 from ezgidemirel/fix-doc
Browse files Browse the repository at this point in the history
Fix function name in documentation
  • Loading branch information
turkenh authored Jan 18, 2022
2 parents 66c9701 + becd7ce commit 7beeadb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit 7beeadb

Please sign in to comment.