From 78c29905821961b78efcbb204e7845e5b1fa19bf Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 30 Apr 2012 14:00:12 -0700 Subject: [PATCH] Fix display if no partition type --- raid/raid-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raid/raid-lib.pl b/raid/raid-lib.pl index c21417583..56f2e8228 100755 --- a/raid/raid-lib.pl +++ b/raid/raid-lib.pl @@ -639,7 +639,7 @@ foreach $d (&fdisk::list_disks_partitions()) { $skip{$p->{'device'}}); local @st = &device_status($p->{'device'}); next if (@st); - $tag = &fdisk::tag_name($p->{'type'}); + $tag = $p->{'type'} ? &fdisk::tag_name($p->{'type'}) : undef; $p->{'blocks'} =~ s/\+$//; push(@disks, [ $p->{'device'}, $p->{'desc'}.