]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/SheepdogPlugin.pm
sheepdog : sheepdog_snapshot_ls : fix
[pve-storage.git] / 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;
        }
     });