style: ran go fmt

This commit is contained in:
Paul Hinze 2015-10-15 10:21:20 -05:00
parent d918d775f3
commit 562a793430
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
package terraform
import (
"github.com/hashicorp/terraform/config"
"strings"
@ -9,7 +10,7 @@ import (
// IgnoreChanges lifecycle.
type EvalIgnoreChanges struct {
Resource *config.Resource
Diff **InstanceDiff
Diff **InstanceDiff
}
func (n *EvalIgnoreChanges) Eval(ctx EvalContext) (interface{}, error) {
@ -20,7 +21,7 @@ func (n *EvalIgnoreChanges) Eval(ctx EvalContext) (interface{}, error) {
diff := *n.Diff
ignoreChanges := n.Resource.Lifecycle.IgnoreChanges
for _, ignoredName := range ignoreChanges {
for _, ignoredName := range ignoreChanges {
for name := range diff.Attributes {
if strings.HasPrefix(name, ignoredName) {
delete(diff.Attributes, name)

View File

@ -320,7 +320,7 @@ func (n *graphNodeExpandedResource) EvalTree() EvalNode {
},
&EvalIgnoreChanges{
Resource: n.Resource,
Diff: &diff,
Diff: &diff,
},
&EvalWriteState{
Name: n.stateId(),