[pve-devel] [PATCH manager] LXC refactoring

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Mar 2 13:53:55 CET 2016


call load_config in PVE::LXC::Config instead of PVE::LXC
---
Note: this depends on the patch series against pve-container
and the single patch against pve-common.

 PVE/API2/Nodes.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 68f6d19..4b5af73 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -1191,7 +1191,7 @@ my $get_start_stop_list = sub {
 
 	    my $conf;
 	    if ($d->{type} eq 'lxc') {
-		$conf = PVE::LXC::load_config($vmid);
+		$conf = PVE::LXC::Config->load_config($vmid);
 	    } elsif ($d->{type} eq 'qemu') {
 		$conf = PVE::QemuServer::load_config($vmid);
 	    } else {
-- 
2.1.4





More information about the pve-devel mailing list