fix: read in the profile property correctly
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user