Merge pull request #15435 from hashicorp/jbardin/state-path-message

only show state path help if state is local
This commit is contained in:
James Bardin 2017-07-18 18:08:18 -04:00 committed by GitHub
commit dd9a54c661
1 changed files with 2 additions and 1 deletions

View File

@ -250,7 +250,8 @@ func (b *Local) opApply(
countHook.Removed)))
}
if countHook.Added > 0 || countHook.Changed > 0 {
// only show the state file help message if the state is local.
if (countHook.Added > 0 || countHook.Changed > 0) && b.StateOutPath != "" {
b.CLI.Output(b.Colorize().Color(fmt.Sprintf(
"[reset]\n"+
"The state of your infrastructure has been saved to the path\n"+