This commit is contained in:
Richard Nordström 2024-09-01 20:25:40 +02:00
parent 6277cf24c6
commit 7eca34a7b2
No known key found for this signature in database
GPG Key ID: ACCB352EC60AF27C
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ func (l *LogoutSession) load(ctx context.Context, profileName string, persistent
return nil
}
func (l *LogoutSession) getConfigSetionMap() (map[string]string, error) {
func (l *LogoutSession) getConfigSectionMap() (map[string]string, error) {
section, err := l.File.GetSection(l.Profile)
if err != nil {
return map[string]string{}, fmt.Errorf("profile does not exist in config file: %w", err)
@ -95,7 +95,7 @@ func newLogoutCommand(persistentAuth *auth.PersistentAuth) *cobra.Command {
defer persistentAuth.Close()
LogoutSession := &LogoutSession{}
LogoutSession.load(ctx, profileName, persistentAuth)
configSectionMap, err := LogoutSession.getConfigSetionMap()
configSectionMap, err := LogoutSession.getConfigSectionMap()
if err != nil {
return err
}