Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main.profileConfig: panic: assignment to entry in nil map #32

Closed
pda opened this issue Oct 6, 2015 · 3 comments
Closed

main.profileConfig: panic: assignment to entry in nil map #32

pda opened this issue Oct 6, 2015 · 3 comments

Comments

@pda
Copy link
Collaborator

pda commented Oct 6, 2015

Added a second access key:

pda@paulbook ~ ⸩ aws-vault add pda
Enter Access Key ID: AKI…PFQ
Enter Secret Access Key:
Added credentials to profile "pda" in vault

aws-vault exec crashes attempting to use it:

pda@paulbook ~ ⸩ aws-vault exec pda -- env
panic: assignment to entry in nil map

goroutine 1 [running]:
main.profileConfig(0x7fff5fbffb2f, 0x3, 0x4f04a60, 0x0, 0x0)
        /Users/pda/code/go/src/github.com/99designs/aws-vault/exec.go:104 +0x2eb
main.ExecCommand(0xc8200848c0, 0xc820084910, 0xc820084960, 0x4575ac0, 0x7fff5fbffb2f, 0x3, 0x7fff5fbffb36, 0x3, 0x0, 0x0, ...)
        /Users/pda/code/go/src/github.com/99designs/aws-vault/exec.go:53 +0x54f
main.main()
        /Users/pda/code/go/src/github.com/99designs/aws-vault/main.go:102 +0x2983

Currently using locally-compiled aws-vault from #30 which is v2.3.1 + small patch.

@pda
Copy link
Collaborator Author

pda commented Oct 6, 2015

Caused by missing [profile pda] in ~/.aws/config

@lox
Copy link
Collaborator

lox commented Oct 7, 2015

Fixed in 2eaa666

@lox lox closed this as completed Oct 7, 2015
@pda
Copy link
Collaborator Author

pda commented Oct 7, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants