From 3fb76f3ebb659c4ea5d70708f2346fcf56cd9e82 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Thu, 29 Jun 2017 15:30:44 -0400 Subject: [PATCH] only show state path help if state is local --- backend/local/backend_apply.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/local/backend_apply.go b/backend/local/backend_apply.go index 86effa645a3d..9b6c7e3a44e4 100644 --- a/backend/local/backend_apply.go +++ b/backend/local/backend_apply.go @@ -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"+