From 6c7cb520094866cacbecb96695aed2d67d8a64a0 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Tue, 27 Dec 2016 15:36:12 -0800 Subject: [PATCH] Fix validation of plugins without rootfs in config Signed-off-by: Tonis Tiigi --- plugin/manager.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/manager.go b/plugin/manager.go index c64dd125c4..1954784fb3 100644 --- a/plugin/manager.go +++ b/plugin/manager.go @@ -301,6 +301,10 @@ func configToRootFS(c []byte) (*image.RootFS, error) { if err := json.Unmarshal(c, &pluginConfig); err != nil { return nil, err } + // validation for empty rootfs is in distribution code + if pluginConfig.Rootfs == nil { + return nil, nil + } return rootFSFromPlugin(pluginConfig.Rootfs), nil }