Skip to content

Commit

Permalink
Merge pull request #1065 from ksamoray/empty_project_id
Browse files Browse the repository at this point in the history
Verify that project_id contains a value
  • Loading branch information
ksamoray authored Dec 14, 2023
2 parents 62ef273 + c780664 commit 6ba7644
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nsxt/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,10 +692,11 @@ func getContextSchema() *schema.Schema {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"project_id": {
Type: schema.TypeString,
Description: "Id of the project which the resource belongs to.",
Required: true,
ForceNew: true,
Type: schema.TypeString,
Description: "Id of the project which the resource belongs to.",
Required: true,
ForceNew: true,
ValidateFunc: validation.StringIsNotEmpty,
},
},
},
Expand Down

0 comments on commit 6ba7644

Please sign in to comment.