puppetlabs/Razor-Microkernel — pull request #18 by tjmcs (2012-11-14 21:17:33+00:00)
Title: Fixes issue with missing disks in lshw output (issue #17)

In issue #17, user reported an issue with missing disks in the lshw-related facts reported to Razor by the Microkernel. This issue ended up being linked to the fact that some of the disks were being reported to the Microkernel by the `lshw` command with a prefix that looked like `*-disk`, while others were being reported by the `lshw` cmmand with a prefix that looked like `*-disk:0` (note that the number in that prefix is just an example, in the output reported by the user there were two of these lines with different integer values for each). The changes in this pull request deal with this edge case properly, merging all of the disks reported by Razor into a single array (with the same "prefix" for all of them). This has the effect of ensuring that all of the disks are reported properly (and no disks are skipped).