From 7775ef809b2239837de85dbce8d83e11be2eec20 Mon Sep 17 00:00:00 2001 From: Patrick Aikens Date: Tue, 27 Jun 2017 12:05:45 -0400 Subject: [PATCH] Display correct to and from backends in copy message when migrating to new remote state (#15318) --- command/meta_backend.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/meta_backend.go b/command/meta_backend.go index 37a708705..87d193aa4 100644 --- a/command/meta_backend.go +++ b/command/meta_backend.go @@ -1080,8 +1080,8 @@ func (m *Meta) backend_C_r_S_changed( if !copy { copy, err = m.confirm(&terraform.InputOpts{ Id: "backend-migrate-to-new", - Query: fmt.Sprintf("Do you want to copy the state from %q?", c.Type), - Description: strings.TrimSpace(fmt.Sprintf(inputBackendMigrateChange, c.Type, s.Backend.Type)), + Query: fmt.Sprintf("Do you want to copy the state from %q?", s.Backend.Type), + Description: strings.TrimSpace(fmt.Sprintf(inputBackendMigrateChange, s.Backend.Type, c.Type)), }) if err != nil { return nil, fmt.Errorf(