fix state migration lock info
This commit is contained in:
parent
ec00564be6
commit
a372e9c54b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue