Skip to content

Commit a149e60

Browse files
google_project Datasource project_id Validated (#6542) (#4684)
Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]>
1 parent 4d55b82 commit a149e60

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.changelog/6542.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```release-note:enhancement
2+
google_project: added validation for field project_id in data source.
3+
4+
```

google-beta/data_source_google_project.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ func dataSourceGoogleProject() *schema.Resource {
1212

1313
addOptionalFieldsToSchema(dsSchema, "project_id")
1414

15+
dsSchema["project_id"].ValidateFunc = validateProjectID()
1516
return &schema.Resource{
1617
Read: datasourceGoogleProjectRead,
1718
Schema: dsSchema,

0 commit comments

Comments
 (0)