Signed-off-by: Victor Vieux <vieux@docker.com>
(cherry picked from commit 04e35a01fcc7292272d688599ed23d829b85f46b)
Signed-off-by: Victor Vieux <vieux@docker.com>
| ... | ... |
@@ -125,7 +125,7 @@ func computePrivileges(pd distribution.PullData) (types.PluginPrivileges, error) |
| 125 | 125 |
} |
| 126 | 126 |
|
| 127 | 127 |
var privileges types.PluginPrivileges |
| 128 |
- if c.Network.Type != "null" && c.Network.Type != "bridge" {
|
|
| 128 |
+ if c.Network.Type != "null" && c.Network.Type != "bridge" && c.Network.Type != "" {
|
|
| 129 | 129 |
privileges = append(privileges, types.PluginPrivilege{
|
| 130 | 130 |
Name: "network", |
| 131 | 131 |
Description: "permissions to access a network", |