From 81b695d5c47b352fd1e9a9c3a949972fa0d868af Mon Sep 17 00:00:00 2001 From: Madhu Venugopal Date: Wed, 20 Apr 2016 05:38:34 -0700 Subject: [PATCH] Initialize activateWait for plugins activated by json spec Signed-off-by: Madhu Venugopal --- plugins/discovery.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/discovery.go b/plugins/discovery.go index 3f79661..9dc6419 100644 --- a/plugins/discovery.go +++ b/plugins/discovery.go @@ -9,6 +9,7 @@ import ( "os" "path/filepath" "strings" + "sync" ) var ( @@ -118,6 +119,7 @@ func readPluginJSONInfo(name, path string) (*Plugin, error) { if len(p.TLSConfig.CAFile) == 0 { p.TLSConfig.InsecureSkipVerify = true } + p.activateWait = sync.NewCond(&sync.Mutex{}) return &p, nil }