]> git.proxmox.com Git - pve-container.git/commitdiff
code cleanup - remove dead code
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 15 Oct 2015 10:10:54 +0000 (12:10 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 15 Oct 2015 10:10:54 +0000 (12:10 +0200)
volume property is not optional, so this is already verified
by PVE::JSONSchema::parse_property_string()

src/PVE/LXC.pm

index 814dd4cf75afe997cc521c02b8bd151e44b4e3da..70cf605783bcd07dd36784d59adda196f9777a96 100644 (file)
@@ -850,12 +850,7 @@ sub parse_ct_mountpoint {
        die $@;
     }
 
-    if (!defined($res->{volume})) {
-       return undef if $noerr;
-       die "no volume set on mountpoint\n";
-    }
-
-    if (my $size = $res->{size}) {
+    if (defined(my $size = $res->{size})) {
        $size = PVE::JSONSchema::parse_size($size);
        if (!defined($size)) {
            return undef if $noerr;