diff --git a/command/state_mv.go b/command/state_mv.go index ea6c5a8cc..8a3c2c1af 100644 --- a/command/state_mv.go +++ b/command/state_mv.go @@ -156,6 +156,11 @@ func (c *StateMvCommand) addableResult(results []*terraform.StateFilterResult) i } } + // If we only have one item, add it directly + if len(result) == 1 { + return result[0] + } + return result default: