]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Commands/lxc.pm
use SectionConfig for PVE::APIClient::Config
[pve-client.git] / PVE / APIClient / Commands / lxc.pm
index 7403143e9f2d581ea5e59197a917dd433cd4649f..250d5f3b1a675589a308a42383aeefa02a4cf20a 100644 (file)
@@ -147,7 +147,8 @@ __PACKAGE__->register_method ({
     code => sub {
        my ($param) = @_;
 
-       my $conn = PVE::APIClient::Config->new()->remote_conn($param->{remote});
+       my $config = PVE::APIClient::Config->load();
+       my $conn = PVE::APIClient::Config->remote_conn($config, $param->{remote});
 
        # Get the real node from the resources endpoint
        my $resource_list = $conn->get("api2/json/cluster/resources", { type => 'vm'});