Skip to content

google_google_service_account_key data source has a project argument that appears to be unused #20477

Open
@SarahFrench

Description

@SarahFrench

The google_google_service_account_key data source has a project argument that appears to be unused:

"project": {
Type: schema.TypeString,
Optional: true,
},

If you search that file for "project" you'll see that there are no d.Get("project"), d.Set("project",...), or tpgresource.GetProject(d, config) calls in the Read method, so the value isn't set in the data source's data, let alone used while making the GET request for the SA key.

It looks like the project input was used in the past, but the Read method was updated over time while the schema stayed the same:?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions