Skip to content

Commit

Permalink
Attempt to fix hashicorp#11752. As noted [here by @chungath](hashicor…
Browse files Browse the repository at this point in the history
…p#11752 (comment)), tags may not be set when the resource is new, since there's no value for arn yet
  • Loading branch information
danielcweber committed Jul 25, 2022
1 parent 1bc96e1 commit 482a86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/neptune/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ func resourceClusterUpdate(d *schema.ResourceData, meta interface{}) error {
}
}

if d.HasChange("tags_all") {
if !d.IsNewResource() && d.HasChange("tags_all") {
o, n := d.GetChange("tags_all")

if err := UpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
Expand Down

0 comments on commit 482a86e

Please sign in to comment.