fmt
This commit is contained in:
parent
e2534e4210
commit
3941dbac5d
|
@ -118,7 +118,7 @@ func resourceAwsInstance() *schema.Resource {
|
|||
Optional: true,
|
||||
},
|
||||
"iam_instance_profile": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Type: schema.TypeString,
|
||||
ForceNew: true,
|
||||
Optional: true,
|
||||
},
|
||||
|
|
|
@ -76,7 +76,7 @@ func resourceComputeFirewall() *schema.Resource {
|
|||
"target_tags": &schema.Schema{
|
||||
Type: schema.TypeSet,
|
||||
Optional: true,
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
Elem: &schema.Schema{Type: schema.TypeString},
|
||||
Set: func(v interface{}) int {
|
||||
return hashcode.String(v.(string))
|
||||
},
|
||||
|
@ -298,7 +298,7 @@ func resourceFirewall(
|
|||
var targetTags []string
|
||||
if v := d.Get("target_tags").(*schema.Set); v.Len() > 0 {
|
||||
targetTags = make([]string, v.Len())
|
||||
for i, v:= range v.List() {
|
||||
for i, v := range v.List() {
|
||||
targetTags[i] = v.(string)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,4 +108,3 @@ func TestGet_update(t *testing.T) {
|
|||
t.Fatalf("doesn't look like get: %s", output)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ func (d *GitHubDetector) detectSSH(src string) (string, bool, error) {
|
|||
u.Scheme = "ssh"
|
||||
u.User = url.User("git")
|
||||
u.Host = "github.com"
|
||||
u.Path = src[idx+1:qidx]
|
||||
u.Path = src[idx+1 : qidx]
|
||||
if qidx < len(src) {
|
||||
q, err := url.ParseQuery(src[qidx+1:])
|
||||
if err != nil {
|
||||
|
@ -69,5 +69,5 @@ func (d *GitHubDetector) detectSSH(src string) (string, bool, error) {
|
|||
u.RawQuery = q.Encode()
|
||||
}
|
||||
|
||||
return "git::"+u.String(), true, nil
|
||||
return "git::" + u.String(), true, nil
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ func (g *HgGetter) Get(dst string, u *url.URL) error {
|
|||
}
|
||||
}
|
||||
|
||||
if err:= g.pull(dst, u); err != nil {
|
||||
if err := g.pull(dst, u); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ func TestGet_file(t *testing.T) {
|
|||
func TestGet_fileForced(t *testing.T) {
|
||||
dst := tempDir(t)
|
||||
u := testModule("basic")
|
||||
u = "file::"+u
|
||||
u = "file::" + u
|
||||
|
||||
if err := Get(dst, u); err != nil {
|
||||
t.Fatalf("err: %s", err)
|
||||
|
@ -76,7 +76,7 @@ func TestGetCopy_file(t *testing.T) {
|
|||
|
||||
func TestGetDirSubdir(t *testing.T) {
|
||||
cases := []struct {
|
||||
Input string
|
||||
Input string
|
||||
Dir, Sub string
|
||||
}{
|
||||
{
|
||||
|
|
|
@ -2,9 +2,9 @@ package module
|
|||
|
||||
import (
|
||||
"bufio"
|
||||
"path/filepath"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
|
|
|
@ -41,7 +41,6 @@ func TestClient_ResourceProvider(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
func TestClient_ResourceProvisioner(t *testing.T) {
|
||||
clientConn, serverConn := testConn(t)
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@ package terraform
|
|||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
"testing"
|
||||
"sort"
|
||||
)
|
||||
|
||||
func TestContextGraph(t *testing.T) {
|
||||
|
|
|
@ -59,7 +59,6 @@ func (s *State) Children(path []string) []*ModuleState {
|
|||
return result
|
||||
}
|
||||
|
||||
|
||||
// AddModule adds the module with the given path to the state.
|
||||
//
|
||||
// This should be the preferred method to add module states since it
|
||||
|
|
Loading…
Reference in New Issue