Display correct to and from backends in copy message when migrating to new remote state (#15318)

This commit is contained in:
Patrick Aikens 2017-06-27 12:05:45 -04:00 committed by Paul Stack
parent 4b85e91ac5
commit 7775ef809b
1 changed files with 2 additions and 2 deletions

View File

@ -1080,8 +1080,8 @@ func (m *Meta) backend_C_r_S_changed(
if !copy { if !copy {
copy, err = m.confirm(&terraform.InputOpts{ copy, err = m.confirm(&terraform.InputOpts{
Id: "backend-migrate-to-new", Id: "backend-migrate-to-new",
Query: fmt.Sprintf("Do you want to copy the state from %q?", c.Type), Query: fmt.Sprintf("Do you want to copy the state from %q?", s.Backend.Type),
Description: strings.TrimSpace(fmt.Sprintf(inputBackendMigrateChange, c.Type, s.Backend.Type)), Description: strings.TrimSpace(fmt.Sprintf(inputBackendMigrateChange, s.Backend.Type, c.Type)),
}) })
if err != nil { if err != nil {
return nil, fmt.Errorf( return nil, fmt.Errorf(