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 6ac2353 commit d3a895f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/active_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ data "mondoo_active_policy" "policy" {
}
output "policies_mrn" {
value = data.mondoo_active_policy.policy.policies.*.policy_mrn
value = [for policy in data.mondoo_active_policy.policy.policies : policy.policy_mrn]
description = "The MRN of the policies in the space"
}
```
Expand Down
4 changes: 2 additions & 2 deletions docs/data-sources/policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ Data source for policies and querypacks
```terraform
data "mondoo_policy" "policy" {
space_id = "your-space-1234567"
catalog_type = "ALL" # availabe options: "ALL", "POLICY", "QUERYPACK"
catalog_type = "ALL" # available options: "ALL", "POLICY", "QUERYPACK"
assigned_only = true
}
output "policies_mrn" {
value = data.mondoo_policy.policy.policies.*.policy_mrn
value = [for policy in data.mondoo_policy.policy.policies : policy.policy_mrn]
description = "The MRN of the policies in the space according to the filter criteria."
}
```
Expand Down
2 changes: 1 addition & 1 deletion examples/data-sources/mondoo_active_policy/data-source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ data "mondoo_active_policy" "policy" {
}

output "policies_mrn" {
value = data.mondoo_active_policy.policy.policies.*.policy_mrn
value = [for policy in data.mondoo_active_policy.policy.policies : policy.policy_mrn]
description = "The MRN of the policies in the space"
}
4 changes: 2 additions & 2 deletions examples/data-sources/mondoo_policy/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
data "mondoo_policy" "policy" {
space_id = "your-space-1234567"
catalog_type = "ALL" # availabe options: "ALL", "POLICY", "QUERYPACK"
catalog_type = "ALL" # available options: "ALL", "POLICY", "QUERYPACK"
assigned_only = true
}

output "policies_mrn" {
value = data.mondoo_policy.policy.policies.*.policy_mrn
value = [for policy in data.mondoo_policy.policy.policies : policy.policy_mrn]
description = "The MRN of the policies in the space according to the filter criteria."
}

0 comments on commit d3a895f

Please sign in to comment.