From 2131e4ffd2a1b9ff718e0e750b64cee4cd5cdbfd Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 30 Sep 2014 22:11:55 -0700 Subject: [PATCH] command: fix failing tests --- command/apply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/apply.go b/command/apply.go index 16725fdcac..ef57abb17e 100644 --- a/command/apply.go +++ b/command/apply.go @@ -109,7 +109,7 @@ func (c *ApplyCommand) Run(args []string) int { c.Ui.Error(err.Error()) return 1 } - if planned { + if c.Destroy && planned { c.Ui.Error(fmt.Sprintf( "Destroy can't be called with a plan file.")) return 1