mirror of
https://github.com/clearlinux/libnetwork.git
synced 2026-10-04 15:58:33 +00:00
Changed Labels to DriverOpts
Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
+2
-2
@@ -279,8 +279,8 @@ func procCreateNetwork(c libnetwork.NetworkController, vars map[string]string, b
|
||||
processCreateDefaults(c, &create)
|
||||
|
||||
options := []libnetwork.NetworkOption{}
|
||||
if len(create.Labels) > 0 {
|
||||
options = append(options, libnetwork.NetworkOptionLabels(create.Labels))
|
||||
if len(create.DriverOpts) > 0 {
|
||||
options = append(options, libnetwork.NetworkOptionDriverOpts(create.DriverOpts))
|
||||
}
|
||||
nw, err := c.NewNetwork(create.NetworkType, create.Name, options...)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user