Skip to content

Commit

Permalink
I forgot to change this back.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed May 30, 2019
1 parent 8385526 commit d4204fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions terraform-open-ssh-tunnels/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,13 @@ func main() {
for _, r := range m.Resources {
if r.Type == "ssh_tunnel" {
d := r.Primary.Attributes
username := d["username"]
username := d["user"]
if username == "" {
currentUser, err := user.Current()
if err != nil {
panic(err)
}
username = currentUser.Username

}
host := d["host"]
privateKey := d["private_key"]
Expand Down

0 comments on commit d4204fc

Please sign in to comment.