Skip to content

Commit

Permalink
Update kubectl_path_documents example doc. (#140)
Browse files Browse the repository at this point in the history
Example uses kubectl_file_documents instead of kubectl_path_documents.
for_each has to be a set or a map and thus toset() is needed.
This update closes #135.
  • Loading branch information
GezimSejdiu authored Nov 10, 2021
1 parent 15de61b commit db60339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data-sources/kubectl_path_documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ data "kubectl_path_documents" "docs" {
}
resource "kubectl_manifest" "test" {
for_each = data.kubectl_file_documents.docs.manifests
for_each = toset(data.kubectl_path_documents.docs.documents)
yaml_body = each.value
}
```
Expand Down

0 comments on commit db60339

Please sign in to comment.