When we sort by a column in the selected table, we assume the objects in
the table have certain properties. However, the meta-host objects have
the wrong names for those properties.
Signed-off-by: Nishanth Aravamudan <[email protected]>
---
I couldn't find anything actually using the "labels" or "locked"
properties, but if this is wrong, we could just add the correct property
names and leave the wrong ones.
diff --git a/frontend/client/src/autotest/afe/HostSelector.java
b/frontend/client/src/autotest/afe/HostSelector.java
index 50d495c..5d42bf1 100644
--- a/frontend/client/src/autotest/afe/HostSelector.java
+++ b/frontend/client/src/autotest/afe/HostSelector.java
@@ -276,9 +276,9 @@ public class HostSelector implements ClickHandler {
JSONObject metaObject = new JSONObject();
metaObject.put("hostname", new JSONString(META_PREFIX + number));
metaObject.put("platform", new JSONString(label));
- metaObject.put("labels", new JSONArray());
+ metaObject.put("other_labels", new JSONString(""));
metaObject.put("status", new JSONString(""));
- metaObject.put("locked", new JSONNumber(0));
+ metaObject.put("locked_text", new JSONString(""));
selectRow(metaObject);
}
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel