rbd: remove false error condition check in checkSnapCloneExists

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2020-10-13 12:18:14 +05:30 committed by mergify[bot]
parent 7992033156
commit be9195cf32

View File

@ -206,10 +206,6 @@ func checkSnapCloneExists(ctx context.Context, parentVol *rbdVolume, rbdSnap *rb
} }
} }
if err != nil {
return false, err
}
util.DebugLog(ctx, "found existing image (%s) with name (%s) for request (%s)", util.DebugLog(ctx, "found existing image (%s) with name (%s) for request (%s)",
rbdSnap.SnapID, rbdSnap.RbdSnapName, rbdSnap.RequestName) rbdSnap.SnapID, rbdSnap.RbdSnapName, rbdSnap.RequestName)
return true, nil return true, nil