Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 5, 2021
1 parent 1761c72 commit 9c2b900
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ldap-get-attribute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_search_result"></a> [search\_result](#output\_search\_result) | n/a |
| <a name="output_search_result"></a> [search\_result](#output\_search\_result) | Object from ldap search result |
11 changes: 0 additions & 11 deletions ldap-get-attribute/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,3 @@ data "external" "search" {
"attribute" = var.attribute
}
}

output "search_result" {
value = {
"count" = data.external.ldap_user.result.count
"status" = data.external.ldap_user.result.status
"attribute" = data.external.ldap_user.result.attribute
"cn" = split("\n", data.external.ldap_user.result.cn)
"dn" = split("\n", data.external.ldap_user.result.dn)
"attribute_value" = split("\n", data.external.ldap_user.result.attribute_value)
}
}
11 changes: 11 additions & 0 deletions ldap-get-attribute/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
output "search_result" {
description = "Object from ldap search result"
value = {
"count" = data.external.ldap_user.result.count
"status" = data.external.ldap_user.result.status
"attribute" = data.external.ldap_user.result.attribute
"cn" = split("\n", data.external.ldap_user.result.cn)
"dn" = split("\n", data.external.ldap_user.result.dn)
"attribute_value" = split("\n", data.external.ldap_user.result.attribute_value)
}
}

0 comments on commit 9c2b900

Please sign in to comment.