Skip to content

Commit ab203d9

Browse files
Removed Chronicle Watchlist post_create (#13539) (#22299)
[upstream:43529e6d678d8c2a1889caf0f024dde98b5c0ba9] Signed-off-by: Modular Magician <[email protected]>
1 parent c1ad50f commit ab203d9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

google/services/chronicle/resource_chronicle_watchlist.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,6 @@ func resourceChronicleWatchlistCreate(d *schema.ResourceData, meta interface{})
283283
}
284284
d.SetId(id)
285285

286-
if tpgresource.IsEmptyValue(reflect.ValueOf(d.Get("watchlist_id"))) {
287-
// watchlist id is set by API when unset and required to GET the connection
288-
// it is set by reading the "name" field rather than a field in the response
289-
if err := d.Set("watchlist_id", flattenChronicleWatchlistWatchlistId("", d, config)); err != nil {
290-
return fmt.Errorf("Error reading Watchlist ID: %s", err)
291-
}
292-
}
293-
294286
log.Printf("[DEBUG] Finished creating Watchlist %q: %#v", d.Id(), res)
295287

296288
return resourceChronicleWatchlistRead(d, meta)

0 commit comments

Comments
 (0)