mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
util: add groupSnapshot details to getReqID
added CreateVolumeGroupSnapshotRequest and DeleteVolumeGroupSnapshotRequest to the getReqID so that we can get the ReqID for the logging. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
12bd269d5b
commit
5ecfa0660f
@ -145,6 +145,13 @@ func getReqID(req interface{}) string {
|
||||
|
||||
case *csi.NodeExpandVolumeRequest:
|
||||
reqID = r.VolumeId
|
||||
|
||||
case *csi.CreateVolumeGroupSnapshotRequest:
|
||||
reqID = r.Name
|
||||
case *csi.DeleteVolumeGroupSnapshotRequest:
|
||||
reqID = r.GroupSnapshotId
|
||||
case *csi.GetVolumeGroupSnapshotRequest:
|
||||
reqID = r.GroupSnapshotId
|
||||
}
|
||||
|
||||
return reqID
|
||||
|
Reference in New Issue
Block a user