Skip to content

Commit

Permalink
Merge pull request #11477 from raoulbhatia/fix-testvol-error
Browse files Browse the repository at this point in the history
test/testvol/main.go: Fix missing arguments to Errorf()
  • Loading branch information
openshift-merge-robot authored Sep 8, 2021
2 parents cd43cf8 + aa412cc commit 180a3c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testvol/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ func (d *DirDriver) Remove(req *volume.RemoveRequest) error {
vol, exists := d.volumes[req.Name]
if !exists {
logrus.Debugf("Did not find volume %s", req.Name)
return errors.Errorf("no volume with name %s found")
return errors.Errorf("no volume with name %s found", req.Name)
}
logrus.Debugf("Found volume %s", req.Name)

if len(vol.mounts) > 0 {
logrus.Debugf("Cannot remove %s, is mounted", req.Name)
return errors.Errorf("volume %s is mounted and cannot be removed")
return errors.Errorf("volume %s is mounted and cannot be removed", req.Name)
}

delete(d.volumes, req.Name)
Expand Down

0 comments on commit 180a3c4

Please sign in to comment.