Skip to content

Commit

Permalink
Merge pull request #7203 from terraform-providers/b/eventgrid-event-s…
Browse files Browse the repository at this point in the history
…ubscription

r/eventgrid_event_subscription: setting the correct field
  • Loading branch information
tombuildsstuff committed Jun 4, 2020
2 parents 4730e1d + ddad3f3 commit e62ad8b
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -980,13 +980,17 @@ func flattenEventGridEventSubscriptionHybridConnectionEndpoint(input *eventgrid.
if input == nil {
return nil
}
result := make(map[string]interface{})

hybridConnectionId := ""
if input.ResourceID != nil {
result["eventhub_id"] = *input.ResourceID
hybridConnectionId = *input.ResourceID
}

return []interface{}{result}
return []interface{}{
map[string]interface{}{
"hybrid_connection_id": hybridConnectionId,
},
}
}

func flattenEventGridEventSubscriptionStorageQueueEndpoint(input *eventgrid.StorageQueueEventSubscriptionDestination) []interface{} {
Expand Down

0 comments on commit e62ad8b

Please sign in to comment.