]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/API2/LXC.pm
Refactor mountpoint and general conf methods
[pve-container.git] / src / PVE / API2 / LXC.pm
index 428f2c1e0bdbfcaf9eb675781325a97db6ae9508..6cd754f10f8207d553417146021ce8622102308d 100644 (file)
@@ -258,7 +258,7 @@ __PACKAGE__->register_method({
        }
 
        # check storage access, activate storage
-       PVE::LXC::foreach_mountpoint($param, sub {
+       PVE::LXC::Config->foreach_mountpoint($param, sub {
            my ($ms, $mountpoint) = @_;
 
            my $volid = $mountpoint->{volume};
@@ -1208,7 +1208,7 @@ __PACKAGE__->register_method({
            disk => {
                type => 'string',
                description => "The disk you want to resize.",
-               enum => [PVE::LXC::mountpoint_names()],
+               enum => [PVE::LXC::Config->mountpoint_names()],
            },
            size => {
                type => 'string',