From 0126e8c56207a492bb5f7d8365551bfebfad5a9a Mon Sep 17 00:00:00 2001 From: Michael Tibben Date: Wed, 8 Feb 2023 14:04:10 +1100 Subject: [PATCH] Remove support for parent_profile, deprecated in v5 --- vault/config.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/vault/config.go b/vault/config.go index 890e5c1f3..1293ddd75 100644 --- a/vault/config.go +++ b/vault/config.go @@ -135,7 +135,6 @@ type ProfileSection struct { RoleSessionName string `ini:"role_session_name,omitempty"` DurationSeconds uint `ini:"duration_seconds,omitempty"` SourceProfile string `ini:"source_profile,omitempty"` - ParentProfile string `ini:"parent_profile,omitempty"` // deprecated IncludeProfile string `ini:"include_profile,omitempty"` SSOSession string `ini:"sso_session,omitempty"` SSOStartURL string `ini:"sso_start_url,omitempty"` @@ -393,20 +392,11 @@ func (cl *ConfigLoader) populateFromConfigFile(config *Config, profileName strin config.SetTransitiveSessionTags(transitiveSessionTags) } - if psection.ParentProfile != "" { - fmt.Fprint(os.Stderr, "Warning: parent_profile is deprecated, please use include_profile instead in your AWS config\n") - } - if psection.IncludeProfile != "" { err := cl.populateFromConfigFile(config, psection.IncludeProfile) if err != nil { return err } - } else if psection.ParentProfile != "" { - err := cl.populateFromConfigFile(config, psection.ParentProfile) - if err != nil { - return err - } } else if profileName != defaultSectionName { err := cl.populateFromConfigFile(config, defaultSectionName) if err != nil {