Skip to content

Commit

Permalink
Fixed ssh port bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dhendel committed Apr 23, 2018
1 parent dae1c61 commit 53e8e46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
dist
vendor
Gopkg.lock
8 changes: 1 addition & 7 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion cloudstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,11 @@ func (d *Driver) Create() error {
}

d.IPAddress = d.PrivateIP
d.SSHPort = 22
d.SSHPort, err = d.GetSSHPort()

if err != nil {
return err
}

return nil
}
Expand Down

0 comments on commit 53e8e46

Please sign in to comment.