Skip to content
This repository was archived by the owner on Dec 9, 2020. It is now read-only.

Fix for for_each hanging #35

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/terraform-providers/terraform-provider-runscope

go 1.14

require (
github.com/ewilde/go-runscope v0.0.0-20190103115619-2adee83e99fe
github.com/hashicorp/hcl v1.0.0 // indirect
Expand Down
9 changes: 9 additions & 0 deletions runscope/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package runscope

import (
"fmt"
"log"
"strings"

runscope "github.com/ewilde/go-runscope"
)
Expand All @@ -14,8 +16,15 @@ type config struct {

func (c *config) client() (*runscope.Client, error) {
client := runscope.NewClient(c.APIURL, c.AccessToken)
runscope.RegisterLogHandlers(levelLogHandler("DEBUG"), levelLogHandler("INFO"), levelLogHandler("ERROR"))

log.Printf("[INFO] runscope client configured for server %s", c.APIURL)

return client, nil
}

func levelLogHandler(errorLevel string) func(level int, format string, args ...interface{}) {
return func(level int, format string, args ...interface{}) {
log.Printf("[%s] %s %s\n", errorLevel, strings.Repeat("\t", level-1), fmt.Sprintf(format, args...))
}
}
307 changes: 0 additions & 307 deletions vendor/github.com/apparentlymart/go-textseg/textseg/make_tables.go

This file was deleted.

Loading