From a602d95758c08ee31489e543d41235d194725802 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Tue, 5 Feb 2013 12:55:47 +0100 Subject: [PATCH] sheepdog : sheepdog_snapshot_ls : fix Signed-off-by: Alexandre Derumier --- PVE/Storage/SheepdogPlugin.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm index 4344e87..b94c79e 100644 --- a/PVE/Storage/SheepdogPlugin.pm +++ b/PVE/Storage/SheepdogPlugin.pm @@ -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; } });