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