]> git.proxmox.com Git - pve-client.git/commitdiff
Config.pm: use PVE::APIClient::PTY
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Jun 2018 08:08:06 +0000 (10:08 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Jun 2018 08:08:06 +0000 (10:08 +0200)
PVE/APIClient/Config.pm

index ab84695d31875ad98a86c9a07a88d058dd579adb..3f2efe596100db9d7ab27917e7a5927c5177f012 100644 (file)
@@ -6,6 +6,7 @@ use JSON;
 
 use PVE::APIClient::JSONSchema;
 use PVE::APIClient::SectionConfig;
+use PVE::APIClient::PTY;
 use PVE::APIClient::Tools qw(file_get_contents file_set_contents);
 
 use base qw(PVE::APIClient::SectionConfig);
@@ -143,7 +144,7 @@ sub remote_conn {
 
     my $password = $section->{password};
     if (!defined($password)) {
-       $password = PVE::PTY::read_password("Remote password: ")
+       $password = PVE::APIClient::PTY::read_password("Remote password: ")
     }
 
     my $conn = PVE::APIClient::LWP->new(