Merge pull request #25255 from unki/patch-1
fix yamldecode()-example, missing a file() call
This commit is contained in:
commit
c093c50c80
|
@ -29,7 +29,7 @@ the configuration:
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
locals {
|
locals {
|
||||||
raw_value = yamldecode("${path.module}/example.yaml")
|
raw_value = yamldecode(file("${path.module}/example.yaml"))
|
||||||
normalized_value = {
|
normalized_value = {
|
||||||
name = tostring(try(local.raw_value.name, null))
|
name = tostring(try(local.raw_value.name, null))
|
||||||
groups = try(local.raw_value.groups, [])
|
groups = try(local.raw_value.groups, [])
|
||||||
|
|
Loading…
Reference in New Issue