mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-13 09:32:24 -06:00
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
|
||||
locals {
|
||||
raw_value = yamldecode("${path.module}/example.yaml")
|
||||
raw_value = yamldecode(file("${path.module}/example.yaml"))
|
||||
normalized_value = {
|
||||
name = tostring(try(local.raw_value.name, null))
|
||||
groups = try(local.raw_value.groups, [])
|
||||
|
Loading…
Reference in New Issue
Block a user