fix state migration lock info

This commit is contained in:
James Bardin 2017-02-15 17:00:54 -05:00
parent ec00564be6
commit a372e9c54b
1 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,8 @@ import (
// This will attempt to lock both states for the migration.
func (m *Meta) backendMigrateState(opts *backendMigrateOpts) error {
lockInfoOne := state.NewLockInfo()
lockInfoOne.Operation = "migration source state"
lockInfoOne.Operation = "migration"
lockInfoOne.Info = "source state"
lockIDOne, err := clistate.Lock(opts.One, lockInfoOne, m.Ui, m.Colorize())
if err != nil {
@ -34,7 +35,8 @@ func (m *Meta) backendMigrateState(opts *backendMigrateOpts) error {
defer clistate.Unlock(opts.One, lockIDOne, m.Ui, m.Colorize())
lockInfoTwo := state.NewLockInfo()
lockInfoTwo.Operation = "migration source state"
lockInfoTwo.Operation = "migration"
lockInfoTwo.Info = "destination state"
lockIDTwo, err := clistate.Lock(opts.Two, lockInfoTwo, m.Ui, m.Colorize())
if err != nil {