Skip to content

Commit

Permalink
update: typo in error (#9084)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician committed Sep 26, 2023
1 parent b03a72f commit 2c48511
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changelog/9084.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```release-note:none
```
2 changes: 1 addition & 1 deletion google-beta/tpgresource/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ func ReplaceVarsForId(d TerraformResourceData, config *transport_tpg.Config, lin
// substitution as 10+ calls to allow for future use cases.
func ReplaceVarsRecursive(d TerraformResourceData, config *transport_tpg.Config, linkTmpl string, shorten bool, depth int) (string, error) {
if depth > 10 {
return "", errors.New("Recursive substitution detcted")
return "", errors.New("Recursive substitution detected")
}

// https://github.com/google/re2/wiki/Syntax
Expand Down

0 comments on commit 2c48511

Please sign in to comment.