diff --git a/plugin/provisioner-chef-client/main.go b/plugin/provisioner-chef-client/main.go index f125b76df..019b67abd 100644 --- a/plugin/provisioner-chef-client/main.go +++ b/plugin/provisioner-chef-client/main.go @@ -6,5 +6,10 @@ import ( ) func main() { - plugin.ServeProvisioner(new(chefclient.Provisioner)) + server, err := plugin.Server() + if err != nil { + panic(err) + } + server.RegisterProvisioner(new(chefclient.Provisioner)) + server.Serve() }