]> git.proxmox.com Git - pve-storage.git/commitdiff
sheepdog : sheepdog_snapshot_ls : fix
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 5 Feb 2013 11:55:47 +0000 (12:55 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Feb 2013 09:17:27 +0000 (10:17 +0100)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Storage/SheepdogPlugin.pm

index 4344e87adf35c82c2ea89c4524ee491b99c5b48c..b94c79e256827c987a79d32913f6e5d98c5829f3 100644 (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;
        }
     });