mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-05 17:52:38 +00:00
Do not read or flatten url_param_only properties in Terraform (#3571)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
0a667ddfe7
commit
5a9891c219
|
@ -232,9 +232,6 @@ func resourceFilestoreInstanceRead(d *schema.ResourceData, meta interface{}) err
|
||||||
return fmt.Errorf("Error reading Instance: %s", 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 {
|
if err := d.Set("description", flattenFilestoreInstanceDescription(res["description"], d)); err != nil {
|
||||||
return fmt.Errorf("Error reading Instance: %s", err)
|
return fmt.Errorf("Error reading Instance: %s", err)
|
||||||
}
|
}
|
||||||
|
@ -378,13 +375,6 @@ func resourceFilestoreInstanceImport(d *schema.ResourceData, meta interface{}) (
|
||||||
return []*schema.ResourceData{d}, nil
|
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{} {
|
func flattenFilestoreInstanceDescription(v interface{}, d *schema.ResourceData) interface{} {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user