Skip to content

Commit

Permalink
depricated fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Nov 28, 2023
1 parent 1ef2e9f commit 3a950b0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
package main

import (
"context"
"flag"
"log"

"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"

Expand All @@ -21,10 +19,13 @@ func main() {
ProviderFunc: testutils.ProviderFunc(),
}
if debugMode {
err := plugin.Debug(context.Background(), "terraform.example.com/vmaas/hpegl", opts) //nolint
if err != nil {
log.Fatal(err.Error())
}
// err := plugin.Debug(context.Background(), "terraform.example.com/vmaas/hpegl", opts) //nolint
opts.Debug = debugMode
opts.ProviderAddr = "terraform.example.com/vmaas/hpegl"
plugin.Serve(opts)
// if err != nil {
// log.Fatal(err.Error())
// }

return
}
Expand Down

0 comments on commit 3a950b0

Please sign in to comment.