terraform: Drop useless field

This commit is contained in:
Armon Dadgar 2014-09-18 17:29:21 -07:00
parent 91eb3c73fc
commit a1c4a27715
1 changed files with 0 additions and 9 deletions

View File

@ -368,11 +368,6 @@ type InstanceState struct {
// and is only meant as a lookup mechanism for the providers. // and is only meant as a lookup mechanism for the providers.
ID string `json:"id"` ID string `json:"id"`
// Tainted is used to mark a resource as existing but being in
// an unknown or errored state. Hence, it is 'tainted' and should
// be destroyed and replaced on the next fun.
Tainted bool `json:"tainted,omitempty"`
// Attributes are basic information about the resource. Any keys here // Attributes are basic information about the resource. Any keys here
// are accessible in variable format within Terraform configurations: // are accessible in variable format within Terraform configurations:
// ${resourcetype.name.attribute}. // ${resourcetype.name.attribute}.
@ -397,7 +392,6 @@ func (i *InstanceState) deepcopy() *InstanceState {
} }
n := &InstanceState{ n := &InstanceState{
ID: i.ID, ID: i.ID,
Tainted: i.Tainted,
Attributes: make(map[string]string, len(i.Attributes)), Attributes: make(map[string]string, len(i.Attributes)),
Ephemeral: *i.Ephemeral.deepcopy(), Ephemeral: *i.Ephemeral.deepcopy(),
} }
@ -457,9 +451,6 @@ func (i *InstanceState) String() string {
} }
buf.WriteString(fmt.Sprintf("ID = %s\n", i.ID)) buf.WriteString(fmt.Sprintf("ID = %s\n", i.ID))
if i.Tainted {
buf.WriteString(fmt.Sprintf("Tainted = true"))
}
attributes := i.Attributes attributes := i.Attributes
attrKeys := make([]string, 0, len(attributes)) attrKeys := make([]string, 0, len(attributes))