Output 'destroy complete' when it's destroy (was: apply) (#8453)
This commit is contained in:
parent
010f028773
commit
8494cad8c4
|
@ -232,12 +232,19 @@ func (c *ApplyCommand) Run(args []string) int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
c.Ui.Output(c.Colorize().Color(fmt.Sprintf(
|
if c.Destroy {
|
||||||
"[reset][bold][green]\n"+
|
c.Ui.Output(c.Colorize().Color(fmt.Sprintf(
|
||||||
"Apply complete! Resources: %d added, %d changed, %d destroyed.",
|
"[reset][bold][green]\n"+
|
||||||
countHook.Added,
|
"Destroy complete! Resources: %d destroyed.",
|
||||||
countHook.Changed,
|
countHook.Removed)))
|
||||||
countHook.Removed)))
|
} else {
|
||||||
|
c.Ui.Output(c.Colorize().Color(fmt.Sprintf(
|
||||||
|
"[reset][bold][green]\n"+
|
||||||
|
"Apply complete! Resources: %d added, %d changed, %d destroyed.",
|
||||||
|
countHook.Added,
|
||||||
|
countHook.Changed,
|
||||||
|
countHook.Removed)))
|
||||||
|
}
|
||||||
|
|
||||||
if countHook.Added > 0 || countHook.Changed > 0 {
|
if countHook.Added > 0 || countHook.Changed > 0 {
|
||||||
c.Ui.Output(c.Colorize().Color(fmt.Sprintf(
|
c.Ui.Output(c.Colorize().Color(fmt.Sprintf(
|
||||||
|
|
Loading…
Reference in New Issue