Skip to content

Commit 9ccfda8

Browse files
authored
fix: returns a result other than nil when both bond and VLAN exist (#5424)
Signed-off-by: renyunkang <[email protected]>
1 parent 7ba0955 commit 9ccfda8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ifacer/cmd/cmd_add.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func CmdAdd(args *skel.CmdArgs) error {
6868
return fmt.Errorf("failed to set %s up: %w", vlanLink.Attrs().Name, err)
6969
}
7070
}
71-
return nil
71+
return types.PrintResult(result, conf.CNIVersion)
7272
}
7373

7474
var notFoundErr netlink.LinkNotFoundError

0 commit comments

Comments
 (0)