Skip to content

Commit

Permalink
Rebase to upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Mar 25, 2022
1 parent 18404aa commit a2e9ba4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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)
}

0 comments on commit a2e9ba4

Please sign in to comment.