Skip to content

Commit

Permalink
Remove error when config doesn't have source_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
lox committed Jan 22, 2017
1 parent 36b4f26 commit add1ca4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions login.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ func LoginCommand(app *kingpin.Application, input LoginCommandInput) {
return
}

if profileConfig, ok := profiles[input.Profile]; ok {
if _, hasSourceProfile := profileConfig["source_profile"]; !hasSourceProfile {
app.Fatalf("Login only works for profiles that use AssumeRole")
return
}
}

provider, err := NewVaultProvider(input.Keyring, input.Profile, VaultOptions{
AssumeRoleDuration: input.AssumeRoleDuration,
MfaToken: input.MfaToken,
Expand Down

0 comments on commit add1ca4

Please sign in to comment.