Skip to content

Commit

Permalink
Return actual error when fetching the bandwidth info from annotation …
Browse files Browse the repository at this point in the history
…fails

Signed-off-by: mrIncompetent <henrik@henrik-schmidt.de>
  • Loading branch information
mrIncompetent committed Jul 28, 2019
1 parent 994cea8 commit 9aec381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/sandbox_run.go
Expand Up @@ -551,7 +551,7 @@ func (c *criService) setupPod(id string, path string, config *runtime.PodSandbox
// or an unreasonable valure see validateBandwidthIsReasonable()
bandWidth, err := toCNIBandWidth(config.Annotations)
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,
Expand Down

0 comments on commit 9aec381

Please sign in to comment.