From 9b2f3380c1d4c90a5f0f15fcba912c0303a1259a Mon Sep 17 00:00:00 2001 From: Abhishek Chanda Date: Wed, 16 Mar 2016 16:25:41 -0700 Subject: [PATCH] Fix govet warnings --- plugins/ipam/host-local/allocator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ipam/host-local/allocator.go b/plugins/ipam/host-local/allocator.go index 159e2cb7..2b867ce5 100644 --- a/plugins/ipam/host-local/allocator.go +++ b/plugins/ipam/host-local/allocator.go @@ -104,7 +104,7 @@ func (a *IPAllocator) Get(id string) (*types.IPConfig, error) { if reserved { return &types.IPConfig{ - IP: net.IPNet{requestedIP, a.conf.Subnet.Mask}, + IP: net.IPNet{IP: requestedIP, Mask: a.conf.Subnet.Mask}, Gateway: gw, Routes: a.conf.Routes, }, nil @@ -124,7 +124,7 @@ func (a *IPAllocator) Get(id string) (*types.IPConfig, error) { } if reserved { return &types.IPConfig{ - IP: net.IPNet{cur, a.conf.Subnet.Mask}, + IP: net.IPNet{IP: cur, Mask: a.conf.Subnet.Mask}, Gateway: gw, Routes: a.conf.Routes, }, nil