Add extra debugging for google OperationWaiter

This commit is contained in:
Radek Simko 2015-08-20 20:51:55 +01:00 committed by Radek Simko
parent 62f8883df0
commit cff26ea65a
1 changed files with 3 additions and 0 deletions

View File

@ -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
}
}