Skip to content

Commit

Permalink
Few more fixes identified during integration
Browse files Browse the repository at this point in the history
Signed-off-by: Madhu Venugopal <madhu@docker.com>
  • Loading branch information
mavenugo committed Oct 10, 2015
1 parent 15be04d commit 16e1647
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion network.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ type IpamConf struct {
// Validate checks whether the configuration is valid
func (c *IpamConf) Validate() error {
if c.Gateway != "" && nil == net.ParseIP(c.Gateway) {
return types.BadRequestErrorf("invalid gateway address %s in IpamConf dtructure", c.Gateway)
return types.BadRequestErrorf("invalid gateway address %s in Ipam configuration", c.Gateway)
}
return nil
}
Expand Down Expand Up @@ -497,6 +497,9 @@ func NetworkOptionLabels(labels map[string]string) NetworkOption {
if n.generic == nil {
n.generic = make(map[string]interface{})
}
if labels == nil {
labels = make(map[string]string)
}
// Store the options
n.generic[netlabel.GenericData] = labels
// Decode and store the endpoint options of libnetwork interest
Expand Down

0 comments on commit 16e1647

Please sign in to comment.