From cff26ea65aef2ba5458cbe56fe4526bf41c8a3e2 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Thu, 20 Aug 2015 20:51:55 +0100 Subject: [PATCH] Add extra debugging for google OperationWaiter --- builtin/providers/google/operation.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builtin/providers/google/operation.go b/builtin/providers/google/operation.go index fb79703c62..0971e3f5bb 100644 --- a/builtin/providers/google/operation.go +++ b/builtin/providers/google/operation.go @@ -3,6 +3,7 @@ package google import ( "bytes" "fmt" + "log" "github.com/hashicorp/terraform/helper/resource" "google.golang.org/api/compute/v1" @@ -52,6 +53,8 @@ func (w *OperationWaiter) RefreshFunc() resource.StateRefreshFunc { return nil, "", err } + log.Printf("[DEBUG] Got %q when asking for operation %q", op.Status, w.Op.Name) + return op, op.Status, nil } }