mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #102310 from navist2020/fix/NoErrReturn
kubeadm:return error info correctly
This commit is contained in:
commit
f66300ef01
@ -279,7 +279,7 @@ func RunCreateToken(out io.Writer, client clientset.Interface, cfgPath string, i
|
||||
}
|
||||
} else {
|
||||
if certificateKey != "" {
|
||||
return errors.Wrap(err, "cannot use --certificate-key without --print-join-command")
|
||||
return errors.New("cannot use --certificate-key without --print-join-command")
|
||||
}
|
||||
fmt.Fprintln(out, internalcfg.BootstrapTokens[0].Token.String())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user