Skip to content

Commit

Permalink
bugfix for snapshot restore (#257)
Browse files Browse the repository at this point in the history
Signed-off-by: Shendge <akash.shendge@dell.com>
  • Loading branch information
shenda1 authored Nov 20, 2024
1 parent 26d33c6 commit 1aced9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions powerscale/provider/snapshot_restore_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ func (r *SnapshotRestoreResource) Update(ctx context.Context, request resource.U

state, diags := helper.ManageSnapshotRestore(ctx, r.client, plan)
response.Diagnostics.Append(diags...)
if response.Diagnostics.HasError() {
return
}

// Save updated data into Terraform state
response.Diagnostics.Append(response.State.Set(ctx, &state)...)
Expand Down

0 comments on commit 1aced9d

Please sign in to comment.