From 71782c57b3898e31cb01ee58da97170e1a63b5cb Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 16 Sep 2014 17:27:14 -0700 Subject: [PATCH] terraform: emit ID of tainted resource in string --- terraform/state.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/terraform/state.go b/terraform/state.go index 0ea366610..fd5a7926f 100644 --- a/terraform/state.go +++ b/terraform/state.go @@ -122,7 +122,11 @@ func (s *State) String() string { id = rs.Primary.ID } if id == "" { - id = "" + if len(rs.Tainted) > 0 { + id = rs.Tainted[0].ID + } else { + id = "" + } } taintStr := ""