From a304c3d793fec74aba1554cc0b7961024018f411 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 6 Jun 2018 06:59:14 +0200 Subject: [PATCH] remote add: fix connection setup --- PVE/APIClient/Commands/remote.pm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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}); -- 2.39.2