fix: read in the profile property correctly
This commit is contained in:
1 file changed
+1
-1
@@ -418,7 +418,7 @@ func CommandClusterAdd(profileName string, role string, remoteHost string, serve
|
|||||||
incomingProfile := NodeProfile{}
|
incomingProfile := NodeProfile{}
|
||||||
|
|
||||||
if profileName != "" {
|
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 == "" {
|
if properties == "" {
|
||||||
return fmt.Errorf("Node profile %s not found", profileName)
|
return fmt.Errorf("Node profile %s not found", profileName)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user