command: fix failing tests

This commit is contained in:
Mitchell Hashimoto 2014-09-30 22:11:55 -07:00
parent d4a2010983
commit 2131e4ffd2
1 changed files with 1 additions and 1 deletions

View File

@ -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