sheepdog : sheepdog_snapshot_ls : fix

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier
2013-02-05 12:55:47 +01:00
committed by Dietmar Maurer
parent a76d3c973f
commit a602d95758

View File

@ -87,8 +87,8 @@ sub sheepdog_snapshot_ls {
run_command($cmd, outfunc => sub {
my $line = shift;
$line = trim($line);
if ($line =~ /s\s(\S+)\s(\d+)\s(\d+)\s(\d+)\s(\d+)\s(\d+)\s(\S+)\s(\d+)\s(\S+)/) {
$list->{$9} = 1;
if ($line =~ m/s $volname (\d+) (\d+) (\d+) (\d+) (\d+) (\S+) (\d+) (\S+)/) {
$list->{$8} = 1;
}
});