From a92c6b6f8de4a5e34508b124f3cbfe86cd1d21d9 Mon Sep 17 00:00:00 2001 From: Dima Lazerka Date: Thu, 8 Dec 2022 20:11:12 -0800 Subject: [PATCH] Don't create default sso-session section --- vault/config.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vault/config.go b/vault/config.go index c9f536d2f..8b390e7b9 100644 --- a/vault/config.go +++ b/vault/config.go @@ -225,11 +225,7 @@ func (c *ConfigFile) SSOSessionSection(name string) (SSOSessionSection, bool) { if c.iniFile == nil { return ssoSession, false } - // default profile name has a slightly different section format sectionName := "sso-session " + name - if name == defaultSectionName { - sectionName = defaultSectionName - } section, err := c.iniFile.GetSection(sectionName) if err != nil { return ssoSession, false