fix: correct the scope on the token

This commit is contained in:
Jose Diaz-Gonzalez
2024-01-23 04:25:41 -05:00
parent ff849cd4f8
commit 57e76e29d1

View File

@@ -132,7 +132,7 @@ func CommandInitialize(serverIP string, taintScheduling bool) error {
return fmt.Errorf("Unable to generate random node name: %w", err)
}
token := strings.ToLower(fmt.Sprintf("%X", b))
token = strings.ToLower(fmt.Sprintf("%X", b))
if err := CommandSet("--global", "token", token); err != nil {
return fmt.Errorf("Unable to set k3s token: %w", err)
}