mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-11 22:39:31 +00:00
rbd: rename groupNamePrefix to volumeGroupNamePrefix
CephFS uses the parameter `volumeGroupNamePrefix` for creating VolumeGroups. This commit renames `groupNamePrefix` to `volumeGroupNamePrefix` for RBD VolumeGroup creation to ensure consistent naming. Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
parent
d8477cb9d4
commit
eebfd15e78
@ -346,8 +346,8 @@ func (mgr *rbdManager) GetVolumeGroupSnapshotByName(
|
|||||||
return nil, errors.New("required 'pool' option missing in volume group parameters")
|
return nil, errors.New("required 'pool' option missing in volume group parameters")
|
||||||
}
|
}
|
||||||
|
|
||||||
// groupNamePrefix is an optional parameter, can be an empty string
|
// volumeGroupNamePrefix is an optional parameter, can be an empty string
|
||||||
prefix := mgr.parameters["groupNamePrefix"]
|
prefix := mgr.parameters["volumeGroupNamePrefix"]
|
||||||
|
|
||||||
clusterID, err := util.GetClusterID(mgr.parameters)
|
clusterID, err := util.GetClusterID(mgr.parameters)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -409,8 +409,8 @@ func (mgr *rbdManager) CreateVolumeGroupSnapshot(
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// groupNamePrefix is an optional parameter, can be an empty string
|
// volumeGroupNamePrefix is an optional parameter, can be an empty string
|
||||||
prefix := mgr.parameters["groupNamePrefix"]
|
prefix := mgr.parameters["volumeGroupNamePrefix"]
|
||||||
|
|
||||||
clusterID, err := vg.GetClusterID(ctx)
|
clusterID, err := vg.GetClusterID(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user