]> git.proxmox.com Git - pve-storage.git/commitdiff
rbd: fix exit from 'rbd ls -l' parser
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 23 Feb 2017 08:22:57 +0000 (09:22 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 23 Feb 2017 08:22:57 +0000 (09:22 +0100)
PVE/Storage/RBDPlugin.pm

index 11ac09475870392f9e09303ffbd80d17768a2334..3a7c20125ec0d9ee6730609cca131fb0a5325434 100644 (file)
@@ -186,7 +186,7 @@ sub rbd_ls {
 
        if ($line =~  m/^((vm|base)-(\d+)-\S+)\s+(\d+)(k|M|G|T)\s((\S+)\/((vm|base)-\d+-\S+@\S+))?/) {
            my ($image, $owner, $size, $unit, $parent) = ($1, $3, $4, $5, $8);
-           next if $image =~ /@/; #skip snapshots
+           return if $image =~ /@/; #skip snapshots
 
            $list->{$pool}->{$image} = {
                name => $image,