[pve-devel] applied: [PATCH pve-client 2/4] remote add: fix connection setup

Dietmar Maurer dietmar at proxmox.com
Wed Jun 6 08:15:51 CEST 2018


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 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.11.0




More information about the pve-devel mailing list