terraform: test module is marked for destroy

This commit is contained in:
Armon Dadgar 2014-11-24 15:50:15 -08:00
parent 56a34087ba
commit d8ecb32a7c
2 changed files with 5 additions and 0 deletions

View File

@ -193,6 +193,10 @@ func (d *ModuleDiff) IsRoot() bool {
func (d *ModuleDiff) String() string {
var buf bytes.Buffer
if d.Destroy {
buf.WriteString("DESTROY MODULE\n")
}
names := make([]string, 0, len(d.Resources))
for name, _ := range d.Resources {
names = append(names, name)

View File

@ -739,6 +739,7 @@ DIFF:
DESTROY: aws_instance.foo
module.child:
DESTROY MODULE
DESTROY: aws_instance.foo
STATE: