From efdf7ae8f3bab9620f8ebd99a978e8f494aed656 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 (cherry picked from commit 04e35a01fcc7292272d688599ed23d829b85f46b) 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 416edc3477..739f7b83cd 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",