File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,14 @@ func (s *SealosInstaller) decodeOutput(output []byte) {
9494// 192.168.0.200:6443 --token 9vr73a.a8uxyaju799qwdjv --discovery-token-ca-cert-hash sha256:7c2e69131a36ae2a042a339b33381c6d0d43887e2de83720eff5359e26aec866 --experimental-control-plane --certificate-key f8902e114ef118304e561c3ecd4d0b543adc226b7a07f675f56564185ffe0c07
9595func (s * SealosInstaller ) decodeJoinCmd (cmd string ) {
9696 stringSlice := strings .Split (cmd , " " )
97- if len (stringSlice ) == 10 {
97+ if len (stringSlice ) == 8 {
9898 s .JoinToken = stringSlice [2 ]
9999 s .TokenCaCertHash = stringSlice [4 ]
100100 s .CertificateKey = stringSlice [7 ]
101101
102102 fmt .Println ("sealos config %v" , * s )
103103 } else {
104104 fmt .Println (" Error decode join command" )
105+ panic (1 )
105106 }
106107}
You can’t perform that action at this time.
0 commit comments