Skip to content

Commit 5c38ec2

Browse files
Removed firestore index post_create (#13981) (#22836)
[upstream:6df8779c66b11c2a50fa48cd069acd89cf8e2d1f] Signed-off-by: Modular Magician <[email protected]>
1 parent 9286ef1 commit 5c38ec2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

google/services/firestore/resource_firestore_index.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -343,16 +343,6 @@ func resourceFirestoreIndexCreate(d *schema.ResourceData, meta interface{}) erro
343343
}
344344
d.SetId(id)
345345

346-
// The operation for this resource contains the generated name that we need
347-
// in order to perform a READ.
348-
metadata := res["metadata"].(map[string]interface{})
349-
name := metadata["index"].(string)
350-
log.Printf("[DEBUG] Setting Index name, id to %s", name)
351-
if err := d.Set("name", name); err != nil {
352-
return fmt.Errorf("Error setting name: %s", err)
353-
}
354-
d.SetId(name)
355-
356346
log.Printf("[DEBUG] Finished creating Index %q: %#v", d.Id(), res)
357347

358348
return resourceFirestoreIndexRead(d, meta)

0 commit comments

Comments
 (0)