Skip to content

Commit

Permalink
Add Validation on enrichment value
Browse files Browse the repository at this point in the history
Value cannot be empty
  • Loading branch information
royto committed Dec 8, 2020
1 parent b81199f commit d102e56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions azurerm/internal/services/iothub/iothub_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,9 @@ func resourceArmIotHub() *schema.Resource {
),
},
"value": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringIsNotEmpty,
},
"endpoint_names": {
Type: schema.TypeList,
Expand Down

0 comments on commit d102e56

Please sign in to comment.