mirror of
https://github.com/rancher/plugins.git
synced 2025-09-28 02:45:50 +00:00
Add simple testing infrastructure
This commit is contained in:
@@ -116,6 +116,9 @@ func cmdAdd(args *skel.CmdArgs) error {
|
||||
containerIPs = append(containerIPs, ip.Address.IP)
|
||||
}
|
||||
}
|
||||
if len(containerIPs) == 0 {
|
||||
return fmt.Errorf("got no container IPs")
|
||||
}
|
||||
|
||||
// Pass through the result for the next plugin
|
||||
return types.PrintResult(conf.PrevResult, conf.CNIVersion)
|
||||
|
Reference in New Issue
Block a user