Merge pull request #82976 from yutedz/clean-rbd-file

Remove error check which is always false in RBDUtil#cleanOldRBDFile
This commit is contained in:
Kubernetes Prow Robot 2019-09-24 08:58:12 -07:00 committed by GitHub
commit ac70f166b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -570,10 +570,6 @@ func (util *RBDUtil) cleanOldRBDFile(plugin *rbdPlugin, rbdFile string) error {
return fmt.Errorf("rbd: decode err: %v.", err)
}
if err != nil {
klog.Errorf("failed to load rbd info from %s: %v", rbdFile, err)
return err
}
// Remove rbd lock if found.
// The disk is not attached to this node anymore, so the lock on image
// for this node can be removed safely.