Add MATCH_ONE Probe Type
The demo systems only have riser 3 installed, so add
a MATCH_ONE probe that allows you to only return 1 device
in the case a regex finds multiple.
Change-Id: I5cb0b3519ccdd467b39795436a80d504a0c82f24
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/configurations/R2000 Chassis.json b/configurations/R2000 Chassis.json
index 7743b77..298b16f 100644
--- a/configurations/R2000 Chassis.json
+++ b/configurations/R2000 Chassis.json
@@ -125,6 +125,7 @@
"probe": [
"FOUND('WFP Baseboard')",
"AND",
- "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'A2UL16RISER1'})"
+ "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'A2UL16RISER\\d'})",
+ "MATCH_ONE"
]
}
\ No newline at end of file