From 5f37f0279aeb5080d1fedf6ecdaaec9c5607b274 Mon Sep 17 00:00:00 2001 From: The Magician Date: Mon, 3 Aug 2020 10:14:14 -0700 Subject: [PATCH] Make project field in google_compute_network_endpoint_group ds optional (#3801) (#6918) Signed-off-by: Modular Magician --- .changelog/3801.txt | 3 +++ google/data_source_compute_network_endpoint_group.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/3801.txt diff --git a/.changelog/3801.txt b/.changelog/3801.txt new file mode 100644 index 00000000000..f9e54186ede --- /dev/null +++ b/.changelog/3801.txt @@ -0,0 +1,3 @@ +```release-note:bug +compute: fixed issue where the `project` field in `data.google_compute_network_endpoint_group` was returning an error when specified +``` diff --git a/google/data_source_compute_network_endpoint_group.go b/google/data_source_compute_network_endpoint_group.go index bf0b16f6e1e..8450997017f 100644 --- a/google/data_source_compute_network_endpoint_group.go +++ b/google/data_source_compute_network_endpoint_group.go @@ -14,6 +14,7 @@ func dataSourceGoogleComputeNetworkEndpointGroup() *schema.Resource { // Set 'Optional' schema elements addOptionalFieldsToSchema(dsSchema, "name") addOptionalFieldsToSchema(dsSchema, "zone") + addOptionalFieldsToSchema(dsSchema, "project") addOptionalFieldsToSchema(dsSchema, "self_link") return &schema.Resource{