iowait example plugin should remove the socket when done

This commit is contained in:
Paul Bellamy
2016-04-12 17:22:40 +01:00
parent 4b4e52397b
commit 72518e7036
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -102,6 +102,7 @@ func (r *Registry) scan() error {
}
client := &http.Client{Transport: tr, Timeout: pluginTimeout}
plugins[path] = NewPlugin(r.context, path, client, r.apiVersion, r.handshakeMetadata)
log.Infof("plugins: added plugin %s", path)
}
// remove plugins which weren't found
for path, plugin := range r.pluginsBySocket {