diff --git a/cmd/provision/provision.go b/cmd/provision/provision.go index 63a75ac1..1544c425 100644 --- a/cmd/provision/provision.go +++ b/cmd/provision/provision.go @@ -16,9 +16,10 @@ package provision import ( "fmt" + "regexp" + "internal/apiclient" "internal/client/provision" - "regexp" "github.com/spf13/cobra" ) diff --git a/internal/client/integrations/integrations.go b/internal/client/integrations/integrations.go index 97dc33c7..51c17a12 100644 --- a/internal/client/integrations/integrations.go +++ b/internal/client/integrations/integrations.go @@ -757,7 +757,6 @@ func GetSfdcInstances(integration []byte) (instances map[string]string, err erro // GetConnections func GetConnections(integration []byte) (connections []string, err error) { - iversion := integrationVersion{} err = json.Unmarshal(integration, &iversion) @@ -779,7 +778,6 @@ func GetConnections(integration []byte) (connections []string, err error) { // GetConnectionsWithRegion func GetConnectionsWithRegion(integration []byte) (connections []integrationConnection, err error) { - iversion := integrationVersion{} err = json.Unmarshal(integration, &iversion) diff --git a/internal/client/provision/provision.go b/internal/client/provision/provision.go index 008cfbf8..50cf37f9 100644 --- a/internal/client/provision/provision.go +++ b/internal/client/provision/provision.go @@ -16,11 +16,12 @@ package provision import ( "fmt" - "internal/apiclient" "net/url" "path" "strconv" "strings" + + "internal/apiclient" ) // Provision @@ -43,7 +44,6 @@ func Provision(cloudkms string, samples bool, gmek bool, serviceAccount string) u.Path = path.Join(u.Path, "client:provision") payload := "{" + strings.Join(provStr, ",") + "}" - fmt.Println(payload) respBody, err = apiclient.HttpClient(u.String(), payload) return respBody, err }