mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #29380 from vieux/skip_empty_network_plugin
skip empty networks in plugin install
This commit is contained in:
commit
738769d23c
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue