Skip to content

Commit

Permalink
Don't create default sso-session section
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-vm authored and dlazerka committed Dec 12, 2022
1 parent c8e4af2 commit a92c6b6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions vault/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a92c6b6

Please sign in to comment.