Skip to content
Merged
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
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (
)

func main() {
defer config.CloseTokenSource() // Revoke SA token when the plugin is exiting because Terraform command finished.

var debugMode bool
flag.BoolVar(&debugMode, "debug", false, "set to true to run the provider with support for debuggers like delve")
flag.Parse()
Expand All @@ -25,7 +23,8 @@ func main() {
provider.MuxProviderFactory(),
serveOpts...,
)
config.CloseTokenSource() // Revoke SA token when the plugin is exiting because Terraform command finished.
if err != nil {
log.Println(err)
log.Fatal(err)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

}
}