Merge pull request #25255 from unki/patch-1

fix yamldecode()-example, missing a file() call
This commit is contained in:
Alisdair McDiarmid 2020-06-24 10:31:08 -04:00 committed by GitHub
commit c093c50c80
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, [])