fix yamldecode()-example, missing a file() call

This commit is contained in:
unki 2020-06-16 09:56:03 +02:00 committed by GitHub
parent 3506f159aa
commit 214009e0f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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, [])