remote add: fix connection setup
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 6 Jun 2018 04:59:14 +0000 (06:59 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 6 Jun 2018 04:59:14 +0000 (06:59 +0200)
PVE/APIClient/Commands/remote.pm

index 06bc1b6..e8c876a 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});