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

change grabbing user from section to config #6

Merged
merged 1 commit into from
Aug 18, 2015

Conversation

jasisk
Copy link
Contributor

@jasisk jasisk commented Aug 14, 2015

Previously would throw if there was no corresponding ssh config (reading User off non-existent section).

Changed to read User from the parsed config.

Reproduce
$ cat $HOME/.ssh/config
# I'm a glutton for punishment and haven't configured my hosts!

$ slex --host some.cool.ip.address --user internetchampion42 uptime

EDIT: I'm pretty nubby when it comes to Go. This was my interpretation of the error and making this change fixed it. ¯_(ツ)_/¯

@crosbymichael
Copy link
Owner

LGTM

thanks!

crosbymichael added a commit that referenced this pull request Aug 18, 2015
change grabbing user from section to config
@crosbymichael crosbymichael merged commit e6e6524 into crosbymichael:master Aug 18, 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

Successfully merging this pull request may close these issues.

None yet

2 participants