Skip to content

Commit

Permalink
pts-core: Don't drop last digit from /dev/md in auto-disks
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellarabel committed Sep 11, 2018
1 parent 5c0c048 commit 0fc8b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pts-core/objects/pts_test_run_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public static function auto_process_test_option(&$test_profile, $option_identifi

foreach($all_devices as $i => &$device)
{
if(is_numeric(substr($device, -1)))
if(is_numeric(substr($device, -1)) && strpos($device, '/dev/md') === false)
{
unset($all_devices[$i]);
}
Expand Down

0 comments on commit 0fc8b88

Please sign in to comment.