mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-03 04:16:42 +00:00
rbd: fix return error message
incase of flattening error return the flatten error. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com> (cherry picked from commit a7b65087af5ba98e3603073c09e21b1c6072b053)
This commit is contained in:
parent
8ab04d4160
commit
45c8d178b2
@ -195,7 +195,7 @@ func (rv *rbdVolume) createCloneFromImage(ctx context.Context, parentVol *rbdVol
|
||||
// flatten clone
|
||||
errFlatten = tempClone.flattenRbdImage(ctx, rv.conn.Creds, false, rbdHardMaxCloneDepth, rbdSoftMaxCloneDepth)
|
||||
if errFlatten != nil {
|
||||
return err
|
||||
return errFlatten
|
||||
}
|
||||
// create snap of temp clone from temporary cloned image
|
||||
// create final clone
|
||||
|
Loading…
x
Reference in New Issue
Block a user