Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Theuermann <[email protected]>
  • Loading branch information
mati007thm committed Jun 20, 2024
1 parent 62ebda0 commit 6ac2353
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docs/data-sources/active_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ data "mondoo_active_policy" "policy" {
}
output "policies_mrn" {
value = data.mondoo_active_policy.policy.policies.*.policy_mrn
value = data.mondoo_active_policy.policy.policies.*.policy_mrn
description = "The MRN of the policies in the space"
}
```

Expand Down
5 changes: 3 additions & 2 deletions docs/data-sources/policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ data "mondoo_policy" "policy" {
assigned_only = true
}
output "policies" {
value = data.mondoo_policy.policy.policies.*.policy_mrn
output "policies_mrn" {
value = data.mondoo_policy.policy.policies.*.policy_mrn
description = "The MRN of the policies in the space according to the filter criteria."
}
```

Expand Down
3 changes: 2 additions & 1 deletion examples/data-sources/mondoo_active_policy/data-source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ data "mondoo_active_policy" "policy" {
}

output "policies_mrn" {
value = data.mondoo_active_policy.policy.policies.*.policy_mrn
value = data.mondoo_active_policy.policy.policies.*.policy_mrn

Check warning on line 6 in examples/data-sources/mondoo_active_policy/data-source.tf

View workflow job for this annotation

GitHub Actions / tflint

List items should be accessed using square brackets
description = "The MRN of the policies in the space"
}
5 changes: 3 additions & 2 deletions examples/data-sources/mondoo_policy/data-source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ data "mondoo_policy" "policy" {
assigned_only = true
}

output "policies" {
value = data.mondoo_policy.policy.policies.*.policy_mrn
output "policies_mrn" {
value = data.mondoo_policy.policy.policies.*.policy_mrn

Check warning on line 8 in examples/data-sources/mondoo_policy/data-source.tf

View workflow job for this annotation

GitHub Actions / tflint

List items should be accessed using square brackets
description = "The MRN of the policies in the space according to the filter criteria."
}

0 comments on commit 6ac2353

Please sign in to comment.