Skip to content
Snippets Groups Projects
Commit dcb2120c authored by JonasS's avatar JonasS
Browse files

3.1.1

- closes #55: 'main' ssh key should be deleted corretly again
parent a737e42d
Branches
Tags 3.1.1
No related merge requests found
......@@ -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
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment