From 04e35a01fcc7292272d688599ed23d829b85f46b Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Tue, 13 Dec 2016 17:46:01 -0800 Subject: [PATCH] skip empty networks in plugin install Signed-off-by: Victor Vieux --- plugin/backend_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/backend_linux.go b/plugin/backend_linux.go index 4cdc37a1f9..1e7b20656d 100644 --- a/plugin/backend_linux.go +++ b/plugin/backend_linux.go @@ -125,7 +125,7 @@ func computePrivileges(pd distribution.PullData) (types.PluginPrivileges, error) } var privileges types.PluginPrivileges - if c.Network.Type != "null" && c.Network.Type != "bridge" { + if c.Network.Type != "null" && c.Network.Type != "bridge" && c.Network.Type != "" { privileges = append(privileges, types.PluginPrivilege{ Name: "network", Description: "permissions to access a network",