Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
steiler committed Aug 10, 2023
1 parent a9bca55 commit e68469b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodes/srl/sshkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ func catenateKeys(in []ssh.PublicKey) string {
for _, k := range in {
// extract the keys in AuthorizedKeys format (e.g. "ssh-rsa <KEY>")
ks := bytes.TrimSpace(ssh.MarshalAuthorizedKey(k))
// add a space seperator, leading quote, then the key string and trailing quote
// add a seperator, leading quote, the key string and trailing quote
fmt.Fprintf(&keys, " \"%s\"", ks)
}
// return all but the first leading quote of the string builders content as string
// return all but the first leading seperator of the string builders content as string
return keys.String()[1:]
}

Expand Down

0 comments on commit e68469b

Please sign in to comment.