Browse Source

Trim spaces when logging the public SSH hey

Stefan Prodan 1 year ago
parent
commit
827f9c314b
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      cmd/fluxd/main.go

+ 2
- 1
cmd/fluxd/main.go View File

@@ -9,6 +9,7 @@ import (
9 9
 	"os/exec"
10 10
 	"os/signal"
11 11
 	"strconv"
12
+	"strings"
12 13
 	"sync"
13 14
 	"syscall"
14 15
 	"time"
@@ -212,7 +213,7 @@ func main() {
212 213
 
213 214
 		logger := log.With(logger, "component", "cluster")
214 215
 		logger.Log("identity", privateKeyPath)
215
-		logger.Log("identity.pub", publicKey.Key)
216
+		logger.Log("identity.pub", strings.TrimSpace(publicKey.Key))
216 217
 		logger.Log("host", restClientConfig.Host, "version", clusterVersion)
217 218
 
218 219
 		kubectl := *kubernetesKubectl

Loading…
Cancel
Save