Skip to content

Commit

Permalink
website: Update StateUpgrader example code block (#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
BBBmau committed Nov 3, 2022
1 parent b5b7dd0 commit c532a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/plugin/sdkv2/resources/state-migration.mdx
Expand Up @@ -106,8 +106,8 @@ func resourceExampleInstanceResourceV0() *schema.Resource {
}
}

func resourceExampleInstanceStateUpgradeV0(rawState map[string]any, meta any) (map[string]any, error) {
rawState["name"] = rawState["name"] + "."
func resourceExampleInstanceStateUpgradeV0(ctx context.Context, rawState map[string]any, meta any) (map[string]any, error) {
rawState["name"] = rawState["name"].(string) + "."

return rawState, nil
}
Expand Down

0 comments on commit c532a49

Please sign in to comment.