Skip to content

Commit

Permalink
correct documentation typo
Browse files Browse the repository at this point in the history
StateReplaceProviderAction#StateUpdate now correctly documents that the
method updates a provider address in TF state.
  • Loading branch information
mdb committed Aug 23, 2023
1 parent 5744dc3 commit 536cd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfmigrate/state_replace_provider_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewStateReplaceProviderAction(source string, destination string) *StateRepl
}

// StateUpdate updates a given state and returns a new state.
// It moves a resource from source address to destination address in the same tfstate file.
// It moves a provider from source address to destination address in the same tfstate file.
func (a *StateReplaceProviderAction) StateUpdate(ctx context.Context, tf tfexec.TerraformCLI, state *tfexec.State) (*tfexec.State, error) {
// Disable unnecessary state backup here,
// because we never restore state from the backup generated by each state action.
Expand Down

0 comments on commit 536cd84

Please sign in to comment.