README: fix Thresholds array in example configuration fragments
When using a configuration based on the README, we get the following
error parsing the Thresholds data:
entity-manager[237]: Unexpected json type in system configuration Thresholds: array
The Thresholds data should be an array, not an array of arrays. This
change updates the README to drop a level of arrays.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Change-Id: I358931edca1f06143cde676178ca110b3ea08121
diff --git a/README.md b/README.md
index 4350925..8da90d3 100644
--- a/README.md
+++ b/README.md
@@ -86,32 +86,30 @@
"Bus": 6,
"Name": "Left Rear Temp",
"Thresholds": [
- [
- {
- "Direction": "greater than",
- "Name": "upper critical",
- "Severity": 1,
- "Value": 115
- },
- {
- "Direction": "greater than",
- "Name": "upper non critical",
- "Severity": 0,
- "Value": 110
- },
- {
- "Direction": "less than",
- "Name": "lower non critical",
- "Severity": 0,
- "Value": 5
- },
- {
- "Direction": "less than",
- "Name": "lower critical",
- "Severity": 1,
- "Value": 0
- }
- ]
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 115
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 110
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
],
"Type": "TMP75"
},
@@ -120,32 +118,30 @@
"Bus": 6,
"Name": "Voltage Regulator 1 Temp",
"Thresholds": [
- [
- {
- "Direction": "greater than",
- "Name": "upper critical",
- "Severity": 1,
- "Value": 115
- },
- {
- "Direction": "greater than",
- "Name": "upper non critical",
- "Severity": 0,
- "Value": 110
- },
- {
- "Direction": "less than",
- "Name": "lower non critical",
- "Severity": 0,
- "Value": 5
- },
- {
- "Direction": "less than",
- "Name": "lower critical",
- "Severity": 1,
- "Value": 0
- }
- ]
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 115
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 110
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
],
"Type": "TMP75"
}
@@ -175,20 +171,18 @@
"BindConnector": "1U System Fan connector 1",
"Name": "Fan 1",
"Thresholds": [
- [
- {
- "Direction": "less than",
- "Name": "lower critical",
- "Severity": 1,
- "Value": 1750
- },
- {
- "Direction": "less than",
- "Name": "lower non critical",
- "Severity": 0,
- "Value": 2000
- }
- ]
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 1750
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 2000
+ }
],
"Type": "AspeedFan"
}