Skip to content

Commit

Permalink
Output root id. Changed name of output
Browse files Browse the repository at this point in the history
  • Loading branch information
snemetz committed Dec 13, 2018
1 parent 221876d commit 042c042
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module "organizational-units" {

| Name | Description |
|------|-------------|
| organizational\_units | Organizational units |
| ids | Root and Organizational units IDs |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM GRAPH HOOK -->
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ terraform apply

| Name | Description |
|------|-------------|
| organizational\_units | Organizational units |
| ids | Root and Organizational units IDs |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
6 changes: 3 additions & 3 deletions examples/basic/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# External has results but no idea about plan/apply
# Null understands plan/apply but has no output

output "organizational_units" {
description = "Organizational units"
value = "${module.example.organizational_units}"
output "ids" {
description = "Root and Organizational units IDs"
value = "${module.example.ids}"
}
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# External has results but no idea about plan/apply
# Null understands plan/apply but has no output

output "organizational_units" {
description = "Organizational units"
output "ids" {
description = "Root and Organizational units IDs"
value = "${data.external.organizational_units.result}"
}
Binary file modified resource-plan-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions scripts/get_ous.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ done
#}"

json="{"
json="${json} \"root\":\"${root_id}\","
for ou in "${!ou_lookup[@]}"; do
json="${json} \"${ou}\":\"${ou_lookup[${ou}]}\","
done
Expand Down

0 comments on commit 042c042

Please sign in to comment.