fix: ensure the profile is a proper json file

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-11-20 04:56:55 -05:00
1 parent 9c1677556e
commit 0e5db7db5c
1 file changed
+5 -1
+5 -1
View File
@@ -1080,7 +1080,11 @@ func CommandProfilesList(format string) error {
}
output := []NodeProfile{}
for _, data := range properties {
for property, data := range properties {
if !strings.HasSuffix(property, ".json") {
continue
}
var profile NodeProfile
err := json.Unmarshal([]byte(data), &profile)
if err != nil {