Updates after running `make fmt` with Go v1.11.1
This commit is contained in:
parent
02e135bac8
commit
48ef7ecfa6
|
@ -1,12 +1,11 @@
|
|||
package local
|
||||
|
||||
import (
|
||||
"log"
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/hashicorp/errwrap"
|
||||
|
||||
"github.com/hashicorp/terraform/backend"
|
||||
"github.com/hashicorp/terraform/command/clistate"
|
||||
"github.com/hashicorp/terraform/configs/configload"
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
)
|
||||
|
||||
func TestObjectValueIDOrName(t *testing.T) {
|
||||
tests := []struct{
|
||||
tests := []struct {
|
||||
obj cty.Value
|
||||
id [2]string
|
||||
name [2]string
|
||||
|
@ -174,7 +174,7 @@ func TestObjectValueIDOrName(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, test := range tests {
|
||||
t.Run(fmt.Sprintf("%#v", test.obj), func (t *testing.T) {
|
||||
t.Run(fmt.Sprintf("%#v", test.obj), func(t *testing.T) {
|
||||
obj := test.obj
|
||||
gotIDKey, gotIDVal := ObjectValueID(obj)
|
||||
gotNameKey, gotNameVal := ObjectValueName(obj)
|
||||
|
|
|
@ -5,13 +5,13 @@ import (
|
|||
"net"
|
||||
"time"
|
||||
|
||||
"google.golang.org/grpc/test/bufconn"
|
||||
"github.com/hashicorp/terraform/helper/plugin"
|
||||
tfplugin "github.com/hashicorp/terraform/plugin"
|
||||
"github.com/hashicorp/terraform/plugin/proto"
|
||||
"github.com/hashicorp/terraform/providers"
|
||||
"github.com/hashicorp/terraform/terraform"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/test/bufconn"
|
||||
)
|
||||
|
||||
// GRPCTestProvider takes a legacy ResourceProvider, wraps it in the new GRPC
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package resource
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"bufio"
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"sort"
|
||||
|
|
Loading…
Reference in New Issue