Skip to content

Commit

Permalink
Update volume.go
Browse files Browse the repository at this point in the history
add log: log.Error("cannot find thin info")
  • Loading branch information
guoguodan committed May 22, 2023
1 parent 9872cf6 commit 3be7f81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/devicemanager/volume/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (v *LocalVolumeImplement) DeleteVolume(lvName, vgName string) error {
// backward compatible
thinInfo, _ := v.Lv.LVDisplay(lvInfo.PoolLV, vgName)
if thinInfo == nil {
log.Error("cannot find thin info")
return nil
}
return v.Lv.DeleteThinPool(lvInfo.PoolLV, vgName)
Expand Down

0 comments on commit 3be7f81

Please sign in to comment.