mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
rbd: add support to get volumegroupID
updated GetIDFromReplication to return volumeGroupID if its present. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
f7c78ae4fe
commit
3a8981a735
@ -128,6 +128,11 @@ func GetIDFromReplication(req interface{}) string {
|
||||
if src != nil && src.GetVolume() != nil {
|
||||
reqID = src.GetVolume().GetVolumeId()
|
||||
}
|
||||
if reqID == "" {
|
||||
if src != nil && src.GetVolumegroup() != nil {
|
||||
reqID = src.GetVolumegroup().GetVolumeGroupId()
|
||||
}
|
||||
}
|
||||
if reqID == "" {
|
||||
reqID = r.GetVolumeId() //nolint:nolintlint,staticcheck // req.VolumeId is deprecated
|
||||
}
|
||||
|
Reference in New Issue
Block a user