From 5a9891c21963619cdee9338a19cba035309f71c5 Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 7 May 2019 09:52:30 -0700 Subject: [PATCH] Do not read or flatten url_param_only properties in Terraform (#3571) Signed-off-by: Modular Magician --- google/resource_filestore_instance.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/google/resource_filestore_instance.go b/google/resource_filestore_instance.go index 917554b5..1a799631 100644 --- a/google/resource_filestore_instance.go +++ b/google/resource_filestore_instance.go @@ -232,9 +232,6 @@ func resourceFilestoreInstanceRead(d *schema.ResourceData, meta interface{}) err return fmt.Errorf("Error reading Instance: %s", err) } - if err := d.Set("name", flattenFilestoreInstanceName(res["name"], d)); err != nil { - return fmt.Errorf("Error reading Instance: %s", err) - } if err := d.Set("description", flattenFilestoreInstanceDescription(res["description"], d)); err != nil { return fmt.Errorf("Error reading Instance: %s", err) } @@ -378,13 +375,6 @@ func resourceFilestoreInstanceImport(d *schema.ResourceData, meta interface{}) ( return []*schema.ResourceData{d}, nil } -func flattenFilestoreInstanceName(v interface{}, d *schema.ResourceData) interface{} { - if v == nil { - return v - } - return NameFromSelfLinkStateFunc(v) -} - func flattenFilestoreInstanceDescription(v interface{}, d *schema.ResourceData) interface{} { return v }