Skip to content

Commit

Permalink
chore: docs clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjarosch committed Aug 14, 2022
1 parent c811eb2 commit b6c251f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This code is generated; DO NOT EDIT.

resource "azurerm_resource_group" "example" {
location = "dev"
location = "westeurope"
name = "rg-dev-terraform"
tags = {
service = "terraform-example"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ resources:
default_location: "westeurope"

resource_group:
location: "${target_name}"
location: "${terraform:resources:default_location}"
name: "rg-${target_name}-terraform"
4 changes: 2 additions & 2 deletions variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func FindVariables(data any) (variables VariableList) {

// newPath is used to copy an existing []interface and hard-copy it.
// This is required because Go wants to optimize slice usage by reusing memory.
// Most of the time, this is totally find, but in this case it would mess up the slice
// by rewriting variables already stored in the slice.
// Most of the time, this is totally fine, but in this case it would mess up the slice
// by changing the path []interface of already found variables.
newPath := func(path []interface{}, appendValue interface{}) []interface{} {
tmp := make([]interface{}, len(path))
copy(tmp, path)
Expand Down

0 comments on commit b6c251f

Please sign in to comment.