From 6d6cd793e0d23f17524c413f1bb65eab16545920 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 20 Aug 2014 10:38:10 -0700 Subject: [PATCH] terraform: GoString for *ResourceState --- terraform/state.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terraform/state.go b/terraform/state.go index 1f5e90d02..2e45a661f 100644 --- a/terraform/state.go +++ b/terraform/state.go @@ -352,6 +352,10 @@ func (s *ResourceState) MergeDiff(d *ResourceDiff) *ResourceState { return &result } +func (s *ResourceState) GoString() string { + return fmt.Sprintf("*%#v", *s) +} + // ResourceDependency maps a resource to another resource that it // depends on to remain intact and uncorrupted. type ResourceDependency struct {