mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #82976 from yutedz/clean-rbd-file
Remove error check which is always false in RBDUtil#cleanOldRBDFile
This commit is contained in:
commit
ac70f166b1
@ -570,10 +570,6 @@ func (util *RBDUtil) cleanOldRBDFile(plugin *rbdPlugin, rbdFile string) error {
|
|||||||
return fmt.Errorf("rbd: decode err: %v.", err)
|
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.
|
// Remove rbd lock if found.
|
||||||
// The disk is not attached to this node anymore, so the lock on image
|
// The disk is not attached to this node anymore, so the lock on image
|
||||||
// for this node can be removed safely.
|
// for this node can be removed safely.
|
||||||
|
Loading…
Reference in New Issue
Block a user