Skip to content

Commit

Permalink
Merge pull request #641 from terraform-providers/ehcg-validation
Browse files Browse the repository at this point in the history
`azurerm_eventhub_consumer_group` - adding validation for the user metadata field
  • Loading branch information
tombuildsstuff authored Dec 20, 2017
2 parents 854d252 + 4d929a7 commit 4384a02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions azurerm/resource_arm_eventhub_consumer_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"github.com/Azure/azure-sdk-for-go/arm/eventhub"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils"
)

Expand Down Expand Up @@ -43,8 +44,9 @@ func resourceArmEventHubConsumerGroup() *schema.Resource {
"location": deprecatedLocationSchema(),

"user_metadata": {
Type: schema.TypeString,
Optional: true,
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringLenBetween(1, 1024),
},
},
}
Expand Down

0 comments on commit 4384a02

Please sign in to comment.