Initialize activateWait for plugins activated by json spec
Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
parent
0468629ae5
commit
81b695d5c4
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -118,6 +119,7 @@ func readPluginJSONInfo(name, path string) (*Plugin, error) {
|
||||||
if len(p.TLSConfig.CAFile) == 0 {
|
if len(p.TLSConfig.CAFile) == 0 {
|
||||||
p.TLSConfig.InsecureSkipVerify = true
|
p.TLSConfig.InsecureSkipVerify = true
|
||||||
}
|
}
|
||||||
|
p.activateWait = sync.NewCond(&sync.Mutex{})
|
||||||
|
|
||||||
return &p, nil
|
return &p, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue