]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Commands/remote.pm
remote add: fix connection setup
[pve-client.git] / PVE / APIClient / Commands / remote.pm
index 06bc1b6d2e6ee4a1269f7da7c6b6330e0ed4d5bd..e8c876a7259921cff5f83452537f828e66985063 100644 (file)
@@ -80,13 +80,7 @@ __PACKAGE__->register_method ({
            };
        }
 
-       my $api = PVE::APIClient::LWP->new(
-           manual_verification     => 1,
-           register_fingerprint_cb => sub {
-               my $fp = shift @_;
-               $last_fp = $fp;
-           },
-       );
+       my $api = PVE::APIClient::LWP->new(%$setup);
        $api->login();
 
        $param->{fingerprint} = $last_fp if !defined($param->{fingerprint});