Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Commit 53e8e46

Browse files
author
dhendel
committed
Fixed ssh port bug
1 parent dae1c61 commit 53e8e46

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
dist
33
vendor
4+
Gopkg.lock

Gopkg.lock

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudstack.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,11 @@ func (d *Driver) Create() error {
443443
}
444444

445445
d.IPAddress = d.PrivateIP
446-
d.SSHPort = 22
446+
d.SSHPort, err = d.GetSSHPort()
447+
448+
if err != nil {
449+
return err
450+
}
447451

448452
return nil
449453
}

0 commit comments

Comments
 (0)