From a2e9ba46e86bd3b5440823581a07ace0750d8069 Mon Sep 17 00:00:00 2001 From: Andy Lo-A-Foe Date: Sat, 30 Oct 2021 11:07:38 +0200 Subject: [PATCH] Rebase to upstream --- main.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index d98aa34f1..a60f6d2d0 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,9 @@ package main import ( + "context" "flag" + "log" "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" "github.com/terraform-providers/terraform-provider-cloudfoundry/cloudfoundry" @@ -17,8 +19,11 @@ func main() { ProviderFunc: cloudfoundry.Provider, } if debugMode { - opts.Debug = true - opts.ProviderAddr = "registry.terraform.io/cloudfoundry-community/cloudfoundry" + err := plugin.Debug(context.Background(), "registry.terraform.io/philips-labs/cloudfoundry", opts) + if err != nil { + log.Fatal(err.Error()) + } + return } plugin.Serve(opts) }