mirror of https://github.com/databricks/cli.git
fix typo
This commit is contained in:
parent
6277cf24c6
commit
7eca34a7b2
|
@ -34,7 +34,7 @@ func (l *LogoutSession) load(ctx context.Context, profileName string, persistent
|
||||||
return nil
|
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)
|
section, err := l.File.GetSection(l.Profile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return map[string]string{}, fmt.Errorf("profile does not exist in config file: %w", err)
|
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()
|
defer persistentAuth.Close()
|
||||||
LogoutSession := &LogoutSession{}
|
LogoutSession := &LogoutSession{}
|
||||||
LogoutSession.load(ctx, profileName, persistentAuth)
|
LogoutSession.load(ctx, profileName, persistentAuth)
|
||||||
configSectionMap, err := LogoutSession.getConfigSetionMap()
|
configSectionMap, err := LogoutSession.getConfigSectionMap()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue