Skip to content

Commit eeb696f

Browse files
committed
Update profile.go
1 parent b960455 commit eeb696f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/profile/profile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ func AddProfile(profileName string, profileDetails models.ProfileDetails) {
206206
// Append the new profile details to the global profile
207207
globalProfile := awsProfiles.Profiles["global"]
208208
globalProfile.Config += fmt.Sprintf("\n[profile %s]\n%s", profileName, profileDetails.Config)
209-
globalProfile.Credentials += fmt.Sprintf("\n[profile %s]\n%s", profileName, profileDetails.Credentials)
210-
globalProfile.SSOEnabled = globalProfile.SSOEnabled || profileDetails.SSOEnabled
209+
globalProfile.Credentials += fmt.Sprintf("\n[%s]\n%s", profileName, profileDetails.Credentials)
210+
globalProfile.SSOEnabled = false
211211

212212
// Update the global profile in the map
213213
awsProfiles.Profiles["global"] = globalProfile

0 commit comments

Comments
 (0)