Fix format string and typos
This commit is contained in:
parent
1448cb66fb
commit
5c2e945b3c
|
@ -1020,7 +1020,7 @@ func (m *Meta) backend_C_r_S_changed(
|
||||||
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?", c.Type),
|
||||||
Description: strings.TrimSpace(inputBackendMigrateChange),
|
Description: strings.TrimSpace(fmt.Sprintf(inputBackendMigrateChange, c.Type, s.Backend.Type)),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf(
|
return nil, fmt.Errorf(
|
||||||
|
@ -1572,7 +1572,7 @@ Current Serial: %[2]d
|
||||||
|
|
||||||
const inputBackendMigrateChange = `
|
const inputBackendMigrateChange = `
|
||||||
Would you like to copy the state from your prior backend %q to the
|
Would you like to copy the state from your prior backend %q to the
|
||||||
newly configured backend %q? If you're reconfiguring the same backend,
|
newly configured %q backend? If you're reconfiguring the same backend,
|
||||||
answering "yes" or "no" shouldn't make a difference. Please answer exactly
|
answering "yes" or "no" shouldn't make a difference. Please answer exactly
|
||||||
"yes" or "no".
|
"yes" or "no".
|
||||||
`
|
`
|
||||||
|
|
|
@ -231,7 +231,7 @@ func (c *S3Client) Lock(info string) error {
|
||||||
|
|
||||||
resp, err := c.dynClient.GetItem(getParams)
|
resp, err := c.dynClient.GetItem(getParams)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("s3 state file %q locked, failed to retrive info: %s", stateName, err)
|
return fmt.Errorf("s3 state file %q locked, failed to retrieve info: %s", stateName, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
var infoData string
|
var infoData string
|
||||||
|
|
Loading…
Reference in New Issue