do not prepend /dev to block device names

This commit is contained in:
Daniel Berteaud 2013-04-17 17:07:25 +02:00
parent beadda2634
commit f3ca95b83f
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ foreach my $block (@blocks){
chomp($size);
next if ($size eq '0');
}
my $dev = '/dev/' . $block;
push @{$json->{data}}, { "{#BLOCKDEVICE}" => $dev, "{#BLOCKSIZE}" => $size };
push @{$json->{data}}, { "{#BLOCKDEVICE}" => $block, "{#BLOCKSIZE}" => $size };
}
print to_json($json);
exit(0);