From 3183a52778247c02dbe09692f09f5cf7dd61a085 Mon Sep 17 00:00:00 2001 From: Elachance Date: Wed, 29 Jan 2014 15:53:16 -0800 Subject: [PATCH] Update main.go --- plugin/provisioner-chef-client/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() }