fix(terraform): keep state clean on failed key update

This commit is contained in:
Som0111 2026-09-10 22:58:24 +05:30
parent 5c118f4ed7
commit 6f47b345b5

View file

@ -327,6 +327,7 @@ func resourceKeyUpdate(ctx context.Context, d *schema.ResourceData, m interface{
key.Metadata = metadata
if _, err := c.UpdateKey(key); err != nil {
d.Partial(true)
return diag.FromErr(fmt.Errorf("error updating key: %s", err))
}