terraform: State string includes how many resources are tainted
This commit is contained in:
parent
9594ed6e1c
commit
ff42a92636
|
@ -134,7 +134,7 @@ func (s *State) String() string {
|
|||
|
||||
taintStr := ""
|
||||
if len(rs.Tainted) > 0 {
|
||||
taintStr = " (tainted)"
|
||||
taintStr = fmt.Sprintf(" (%d tainted)", len(rs.Tainted))
|
||||
}
|
||||
|
||||
buf.WriteString(fmt.Sprintf("%s:%s\n", k, taintStr))
|
||||
|
|
|
@ -137,7 +137,7 @@ aws_instance.foo:
|
|||
`
|
||||
|
||||
const testTerraformApplyProvisionerFailStr = `
|
||||
aws_instance.bar: (tainted)
|
||||
aws_instance.bar: (1 tainted)
|
||||
ID = foo
|
||||
aws_instance.foo:
|
||||
ID = foo
|
||||
|
@ -500,7 +500,7 @@ DESTROY/CREATE: aws_instance.bar
|
|||
|
||||
STATE:
|
||||
|
||||
aws_instance.bar: (tainted)
|
||||
aws_instance.bar: (1 tainted)
|
||||
ID = baz
|
||||
aws_instance.foo:
|
||||
ID = bar
|
||||
|
|
Loading…
Reference in New Issue