Skip to content

Commit e188877

Browse files
committed
remove sshUrlEncode
1 parent ea513d0 commit e188877

File tree

1 file changed

+0
-11
lines changed
  • cloud/services/compute/instance

1 file changed

+0
-11
lines changed

cloud/services/compute/instance/qemu.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"context"
55
"fmt"
66
"math/rand"
7-
"net/url"
8-
"strings"
97
"time"
108

119
"github.com/pkg/errors"
@@ -141,12 +139,3 @@ func generateVMOptions(vmName, storageName string, network infrav1.Network, hard
141139
}
142140
return vmoptions
143141
}
144-
145-
// URL encodes the ssh keys
146-
func sshKeyUrlEncode(keys string) (encodedKeys string) {
147-
encodedKeys = url.PathEscape(keys + "\n")
148-
encodedKeys = strings.Replace(encodedKeys, "+", "%2B", -1)
149-
encodedKeys = strings.Replace(encodedKeys, "@", "%40", -1)
150-
encodedKeys = strings.Replace(encodedKeys, "=", "%3D", -1)
151-
return
152-
}

0 commit comments

Comments
 (0)