diff --git a/README.md b/README.md index ccfbdca3a8be49794de888f200efce4bfe871f3f..f1d83acbc98b6cc3e4b3725d082e741f173c55d0 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ You can find sources and pre-compiled binaries [here](https://github.com/JonasPr ```bash # Download the binary (this example downloads the binary for linux amd64) -$ 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 -$ tar -xvf docker-machine-driver-hetzner_3.1.0_linux_amd64.tar.gz +$ 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 +$ tar -xvf docker-machine-driver-hetzner_3.1.1_linux_amd64.tar.gz # Make it executable and copy the binary in a directory accessible with your $PATH $ chmod +x docker-machine-driver-hetzner diff --git a/driver.go b/driver.go index 00a98f7da3d78285554a0a144f78c1892216d10c..d4d975e39327b26e37848423f9f2e2da7eb7db34 100644 --- a/driver.go +++ b/driver.go @@ -413,10 +413,6 @@ func (d *Driver) makeKey(name string, pubkey string) (*hcloud.SSHKey, error) { } func (d *Driver) destroyDanglingKeys() { - if !d.IsExistingKey { - d.KeyID = 0 - } - for _, key := range d.danglingKeys { if _, err := d.getClient().SSHKey.Delete(context.Background(), key); err != nil { log.Errorf("could not delete ssh key: %v", err)