cleanup: correct typo in NewCSIVolumeroupJournal() function

The name of the function should be `NewCSIVolumeGroupJournal()`.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2024-03-14 09:27:11 +01:00 committed by mergify[bot]
parent 4f04748c87
commit c32dfc0ae6

View File

@ -84,8 +84,8 @@ type volumeGroupJournalConfig struct {
*Connection *Connection
} }
// NewCSIVolumeroupJournal returns an instance of VolumeGroupJournal for groups. // NewCSIVolumeGroupJournal returns an instance of VolumeGroupJournal for groups.
func NewCSIVolumeroupJournal(suffix string) VolumeGroupJournal { func NewCSIVolumeGroupJournal(suffix string) VolumeGroupJournal {
return &volumeGroupJournalConfig{ return &volumeGroupJournalConfig{
Config: &Config{ Config: &Config{
csiDirectory: "csi.groups." + suffix, csiDirectory: "csi.groups." + suffix,
@ -105,7 +105,7 @@ func (sgj *volumeGroupJournalConfig) SetNamespace(ns string) {
// NewCSIVolumeGroupJournalWithNamespace returns an instance of VolumeGroupJournal for // NewCSIVolumeGroupJournalWithNamespace returns an instance of VolumeGroupJournal for
// volume groups using a predetermined namespace value. // volume groups using a predetermined namespace value.
func NewCSIVolumeGroupJournalWithNamespace(suffix, ns string) VolumeGroupJournal { func NewCSIVolumeGroupJournalWithNamespace(suffix, ns string) VolumeGroupJournal {
j := NewCSIVolumeroupJournal(suffix) j := NewCSIVolumeGroupJournal(suffix)
j.SetNamespace(ns) j.SetNamespace(ns)
return j return j