From ef576128e3869baa7aa0c61e7fb32133a15e68e3 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Mon, 29 Mar 2021 15:39:19 +0200 Subject: [PATCH] Use correct hostname argument for secret gen Signed-off-by: Hidde Beydals --- cmd/flux/bootstrap_gitlab.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flux/bootstrap_gitlab.go b/cmd/flux/bootstrap_gitlab.go index 6be6c6f5..fb22972c 100644 --- a/cmd/flux/bootstrap_gitlab.go +++ b/cmd/flux/bootstrap_gitlab.go @@ -200,7 +200,7 @@ func bootstrapGitLabCmdRun(cmd *cobra.Command, args []string) error { secretOpts.PrivateKeyAlgorithm = sourcesecret.PrivateKeyAlgorithm(bootstrapArgs.keyAlgorithm) secretOpts.RSAKeyBits = int(bootstrapArgs.keyRSABits) secretOpts.ECDSACurve = bootstrapArgs.keyECDSACurve.Curve - secretOpts.SSHHostname = githubArgs.hostname + secretOpts.SSHHostname = gitlabArgs.hostname if bootstrapArgs.privateKeyFile != "" { secretOpts.PrivateKeyPath = bootstrapArgs.privateKeyFile