Return actual error when fetching the bandwidth info from annotation fails
Signed-off-by: mrIncompetent <henrik@henrik-schmidt.de>
This commit is contained in:
parent
994cea830b
commit
9aec38164d
@ -551,7 +551,7 @@ func (c *criService) setupPod(id string, path string, config *runtime.PodSandbox
|
|||||||
// or an unreasonable valure see validateBandwidthIsReasonable()
|
// or an unreasonable valure see validateBandwidthIsReasonable()
|
||||||
bandWidth, err := toCNIBandWidth(config.Annotations)
|
bandWidth, err := toCNIBandWidth(config.Annotations)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", nil, errors.Errorf("failed to find network info for sandbox %q", id)
|
return "", nil, errors.Wrap(err, "failed to get bandwidth info from annotations")
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := c.netPlugin.Setup(id,
|
result, err := c.netPlugin.Setup(id,
|
||||||
|
Loading…
Reference in New Issue
Block a user