fix: read in the profile property correctly

This commit is contained in:
Jose Diaz-Gonzalez
2025-11-20 04:56:45 -05:00
parent bd98ff5299
commit 9c1677556e

View File

@@ -418,7 +418,7 @@ func CommandClusterAdd(profileName string, role string, remoteHost string, serve
incomingProfile := NodeProfile{}
if profileName != "" {
properties := common.PropertyGetDefault("scheduler-k3s", "--global", fmt.Sprintf("node-profile-%s", profileName), "")
properties := common.PropertyGetDefault("scheduler-k3s", "--global", fmt.Sprintf("node-profile-%s.json", profileName), "")
if properties == "" {
return fmt.Errorf("Node profile %s not found", profileName)
}