command: default path should be the local path

This commit is contained in:
Mitchell Hashimoto 2015-02-21 18:20:04 -08:00
parent f81110c2fe
commit 4f91b98a3e
1 changed files with 6 additions and 1 deletions

View File

@ -174,8 +174,13 @@ func (m *Meta) State() (state.State, error) {
return m.state, nil
}
path := m.statePath
if path == "" {
path = DefaultStateFilename
}
state, statePath, err := State(&StateOpts{
LocalPath: m.statePath,
LocalPath: path,
LocalPathOut: m.stateOutPath,
BackupPath: m.backupPath,
})