Skip to content

Commit dcb2120

Browse files
3.1.1
- closes #55: 'main' ssh key should be deleted corretly again
1 parent a737e42 commit dcb2120

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ You can find sources and pre-compiled binaries [here](https://github.com/JonasPr
1515

1616
```bash
1717
# Download the binary (this example downloads the binary for linux amd64)
18-
$ wget https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.1.0/docker-machine-driver-hetzner_3.1.0_linux_amd64.tar.gz
19-
$ tar -xvf docker-machine-driver-hetzner_3.1.0_linux_amd64.tar.gz
18+
$ wget https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.1.1/docker-machine-driver-hetzner_3.1.1_linux_amd64.tar.gz
19+
$ tar -xvf docker-machine-driver-hetzner_3.1.1_linux_amd64.tar.gz
2020

2121
# Make it executable and copy the binary in a directory accessible with your $PATH
2222
$ chmod +x docker-machine-driver-hetzner

driver.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,6 @@ func (d *Driver) makeKey(name string, pubkey string) (*hcloud.SSHKey, error) {
413413
}
414414

415415
func (d *Driver) destroyDanglingKeys() {
416-
if !d.IsExistingKey {
417-
d.KeyID = 0
418-
}
419-
420416
for _, key := range d.danglingKeys {
421417
if _, err := d.getClient().SSHKey.Delete(context.Background(), key); err != nil {
422418
log.Errorf("could not delete ssh key: %v", err)

0 commit comments

Comments
 (0)