Merge pull request #509 from aojea/portmapDel
portmap should not perform deletions if not portMapping config received
This commit is contained in:
commit
6eb8e31d21
@ -107,6 +107,10 @@ func cmdDel(args *skel.CmdArgs) error {
|
||||
return fmt.Errorf("failed to parse config: %v", err)
|
||||
}
|
||||
|
||||
if len(netConf.RuntimeConfig.PortMaps) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
netConf.ContainerID = args.ContainerID
|
||||
|
||||
// We don't need to parse out whether or not we're using v6 or snat,
|
||||
|
Loading…
x
Reference in New Issue
Block a user