From: Dietmar Maurer Date: Wed, 6 Jun 2018 04:59:14 +0000 (+0200) Subject: remote add: fix connection setup X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=commitdiff_plain;h=a304c3d793fec74aba1554cc0b7961024018f411 remote add: fix connection setup --- diff --git a/PVE/APIClient/Commands/remote.pm b/PVE/APIClient/Commands/remote.pm index 06bc1b6..e8c876a 100644 --- a/PVE/APIClient/Commands/remote.pm +++ b/PVE/APIClient/Commands/remote.pm @@ -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});