Fixing the User Data Source docs (#11094)

This commit is contained in:
Tom Harvey 2017-01-09 08:35:17 +00:00 committed by Paul Stack
parent dd1f930f4e
commit c52b2cb8ad
2 changed files with 12 additions and 7 deletions

View File

@ -40,12 +40,12 @@ resource "azurerm_eventhub" "test" {
} }
resource "azurerm_eventhub_consumer_group" "test" { resource "azurerm_eventhub_consumer_group" "test" {
name = "acceptanceTestEventHubConsumerGroup" name = "acceptanceTestEventHubConsumerGroup"
namespace_name = "${azurerm_eventhub_namespace.test.name}" namespace_name = "${azurerm_eventhub_namespace.test.name}"
eventhub_name = "${azurerm_eventhub.test.name}" eventhub_name = "${azurerm_eventhub.test.name}"
resource_group_name = "${azurerm_resource_group.test.name}" resource_group_name = "${azurerm_resource_group.test.name}"
location = "${azurerm_resource_group.test.location}" location = "${azurerm_resource_group.test.location}"
user_metadata = "some-meta-data" user_metadata = "some-meta-data"
} }
``` ```

View File

@ -13,12 +13,17 @@ Use this data source to get information about a specific user within OpsGenie.
## Example Usage ## Example Usage
``` ```
data "opsgenie_user" "me" { data "opsgenie_user" "cookie_monster" {
username = "me@cookie-monster.com" username = "me@cookie-monster.com"
} }
resource "opsgenie_team" "test" { resource "opsgenie_team" "test" {
TODO: example name = "cookieeaters"
member {
username = "${data.opsgenie_user.cookie_monster.username}"
role = "${data.opsgenie_user.cookie_monster.role}"
}
} }
``` ```