Display correct to and from backends in copy message when migrating to new remote state (#15318)
This commit is contained in:
parent
4b85e91ac5
commit
7775ef809b
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue