Skip to content

Commit f09a713

Browse files
tamilmani1989sharmasushant
authored andcommitted
Fixed the github acsengine issue #176 (#177)
1 parent e29adde commit f09a713

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cni/network/network.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ func (plugin *netPlugin) Add(args *cniSkel.CmdArgs) error {
148148
args.ContainerID, args.Netns, args.IfName, args.Args, args.Path)
149149

150150
defer func() {
151+
if result == nil {
152+
result = &cniTypesCurr.Result{}
153+
}
154+
151155
// Add Interfaces to result.
152156
iface = &cniTypesCurr.Interface{
153157
Name: args.IfName,

0 commit comments

Comments
 (0)